blob: c9c7c7fcd507603d7754d8f35bd20907a1d61658 [file] [log] [blame]
/* REQUIRED_ARGS: -betterC
TEST_OUTPUT:
---
fail_compilation/test21477.d(103): Error: expression `[1]` uses the GC and cannot be used with switch `-betterC`
---
*/
// https://issues.dlang.org/show_bug.cgi?id=21477
#line 100
int test()
{
int[] foo = [1];
return 0;
}