MATCH: Improve `A CMP 0 ? A : -A` set of patterns to use bitwise_equal_p.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / fail9766.d
blob03a94cb795f69b09d312662516f2f9792c2a4180
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 ---
13 #line 12
14 template Foo(T) {}
16 align(Foo!int)
17 struct S9766a {}
19 align(-1)
20 struct S9766b {}
22 align(0)
23 struct S9766c {}
25 align(3)
26 struct S9766d {}
28 align((1u << 31) + 1)
29 struct S9766e {}