Debian Codegraph @

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

raw
1 // REQUIRED_ARGS: -betterC
2
3 /*
4 TEST_OUTPUT:
5 ---
6 fail_compilation/test24295.d(12): Error: expression `new int[](1$?:32=u|64=LU$)` allocates with the GC and cannot be used with switch `-betterC`
7 ---
8 */
9
10 void f()
11 {
12 int[] overlaps = new int[1];
13 }