blob: e354a11eae868876fbb55e71a05e9cfe96055d46 [file] [log] [blame]
/*
REQUIRED_ARGS: -betterC
TEST_OUTPUT:
---
fail_compilation/test18312.d(14): Error: array concatenation of expression `"[" ~ s ~ "]"` requires the GC which is not available with -betterC
---
*/
// https://issues.dlang.org/show_bug.cgi?id=18312
extern (C) void main()
{
scope string s;
s = "[" ~ s ~ "]";
}