| 1 |
/* |
| 2 |
TEST_OUTPUT: |
| 3 |
--- |
| 4 |
fail_compilation/fail9766.d(14): Error: integer constant expression expected instead of `Foo!int` |
| 5 |
fail_compilation/fail9766.d(14): Error: alignment must be an integer positive power of 2, not 0x0 |
| 6 |
fail_compilation/fail9766.d(17): Error: alignment must be an integer positive power of 2, not 0xffffffffffffffff |
| 7 |
fail_compilation/fail9766.d(20): Error: alignment must be an integer positive power of 2, not 0x0 |
| 8 |
fail_compilation/fail9766.d(23): Error: alignment must be an integer positive power of 2, not 0x3 |
| 9 |
fail_compilation/fail9766.d(26): Error: alignment must be an integer positive power of 2, not 0x80000001 |
| 10 |
--- |
| 11 |
*/ |
| 12 |
|
| 13 |
#line 12 |
| 14 |
template Foo(T) {} |
| 15 |
|
| 16 |
align(Foo!int) |
| 17 |
struct S9766a {} |
| 18 |
|
| 19 |
align(-1) |
| 20 |
struct S9766b {} |
| 21 |
|
| 22 |
align(0) |
| 23 |
struct S9766c {} |
| 24 |
|
| 25 |
align(3) |
| 26 |
struct S9766d {} |
| 27 |
|
| 28 |
align((1u << 31) + 1) |
| 29 |
struct S9766e {} |