dmd/compiler/test/fail_compilation/test21477.d
2022-07-09 18:53:07 +02:00

16 lines
277 B
D

/* 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;
}