Debian Codegraph @

gcc/testsuite/gdc.test/fail_compilation/fail4611.d

raw
1 /* REQUIRED_ARGS: -m32
2 TEST_OUTPUT:
3 ---
4 fail_compilation/fail4611.d(15): Error: `Vec[cast(size_t)2147483647]` size 4 * 2147483647 exceeds 0x7fffffff size limit for static array
5 ---
6 */
7
8 struct Vec
9 {
10 int x;
11 }
12
13 void main()
14 {
15 Vec[ptrdiff_t.max] a;
16 }