]>
Commit | Line | Data |
---|---|---|
b4c522fa IB |
1 | /* |
2 | REQUIRED_ARGS: -m64 | |
7da827c9 | 3 | TEST_OUTPUT: |
b4c522fa | 4 | --- |
b0a55e66 IB |
5 | fail_compilation/staticarrayoverflow.d(24): Error: static array `S[1879048192]` size overflowed to 7516192768000 |
6 | fail_compilation/staticarrayoverflow.d(24): Error: variable `staticarrayoverflow.y` size overflow | |
7 | fail_compilation/staticarrayoverflow.d(26): Error: static array `S[8070450532247928832]` size overflowed to 8070450532247928832 | |
8 | fail_compilation/staticarrayoverflow.d(26): Error: variable `staticarrayoverflow.a` size overflow | |
9 | fail_compilation/staticarrayoverflow.d(27): Error: static array `S[0][18446744073709551615LU]` size overflowed to 18446744073709551615 | |
10 | fail_compilation/staticarrayoverflow.d(27): Error: variable `staticarrayoverflow.b` size overflow | |
11 | fail_compilation/staticarrayoverflow.d(28): Error: static array `S[0][4294967295]` size overflowed to 4294967295 | |
12 | fail_compilation/staticarrayoverflow.d(28): Error: variable `staticarrayoverflow.c` size overflow | |
b4c522fa IB |
13 | --- |
14 | */ | |
15 | ||
16 | ||
17 | ||
18 | struct S | |
19 | { | |
20 | int[1000] x; | |
21 | } | |
22 | ||
23 | S[0x7000_0000] y; | |
24 | S[0x100_0000/(4*1000 - 1)] z; | |
25 | S[0x7000_0000_0000_0000] a; | |
b0a55e66 IB |
26 | S[0][-1] b; |
27 | S[0][uint.max] c; |