mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 05:00:16 +03:00
29 lines
821 B
D
29 lines
821 B
D
/*
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/fail9766.d(14): Error: integer constant expression expected instead of `Foo!int`
|
|
fail_compilation/fail9766.d(14): Error: alignment must be an integer positive power of 2, not 0x0
|
|
fail_compilation/fail9766.d(17): Error: alignment must be an integer positive power of 2, not 0xffffffffffffffff
|
|
fail_compilation/fail9766.d(20): Error: alignment must be an integer positive power of 2, not 0x0
|
|
fail_compilation/fail9766.d(23): Error: alignment must be an integer positive power of 2, not 0x3
|
|
fail_compilation/fail9766.d(26): Error: alignment must be an integer positive power of 2, not 0x80000001
|
|
---
|
|
*/
|
|
|
|
#line 12
|
|
template Foo(T) {}
|
|
|
|
align(Foo!int)
|
|
struct S9766a {}
|
|
|
|
align(-1)
|
|
struct S9766b {}
|
|
|
|
align(0)
|
|
struct S9766c {}
|
|
|
|
align(3)
|
|
struct S9766d {}
|
|
|
|
align((1u << 31) + 1)
|
|
struct S9766e {}
|