MATCH: Improve `A CMP 0 ? A : -A` set of patterns to use bitwise_equal_p.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / test21477.d
blobc9c7c7fcd507603d7754d8f35bd20907a1d61658
1 /* REQUIRED_ARGS: -betterC
2 TEST_OUTPUT:
3 ---
4 fail_compilation/test21477.d(103): Error: expression `[1]` uses the GC and cannot be used with switch `-betterC`
5 ---
6 */
8 // https://issues.dlang.org/show_bug.cgi?id=21477
10 #line 100
12 int test()
14 int[] foo = [1];
15 return 0;