mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 21:21:48 +03:00
16 lines
277 B
D
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;
|
|
}
|