/* REQUIRED_ARGS: -betterC
DISABLED: LDC // no expression info in error msg
TEST_OUTPUT:
---
fail_compilation/test21477.d(103): Error: this array literal requires the GC and cannot be used with `-betterC`
---
*/

// https://issues.dlang.org/show_bug.cgi?id=21477

#line 100

int test()
{
    int[] foo = [1];
    return 0;
}
