mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
15 lines
317 B
D
15 lines
317 B
D
/*
|
|
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 ~ "]";
|
|
}
|