| 1 |
/* |
| 2 |
TEST_OUTPUT: |
| 3 |
--- |
| 4 |
fail_compilation/fail24.d(11): Error: alias `fail24.strtype` conflicts with alias `fail24.strtype` at fail_compilation/fail24.d(10) |
| 5 |
fail_compilation/fail24.d(12): Error: alias `fail24.strtype` conflicts with alias `fail24.strtype` at fail_compilation/fail24.d(11) |
| 6 |
fail_compilation/fail24.d(13): Error: alias `fail24.strtype` conflicts with alias `fail24.strtype` at fail_compilation/fail24.d(12) |
| 7 |
--- |
| 8 |
*/ |
| 9 |
|
| 10 |
alias char[] strtype; |
| 11 |
alias char[64] strtype; |
| 12 |
alias char[128] strtype; |
| 13 |
alias char[256] strtype; |
| 14 |
|
| 15 |
int main() |
| 16 |
{ |
| 17 |
printf("%u", strtype.sizeof); |
| 18 |
return 0; |
| 19 |
} |