Debian Codegraph @

gcc/testsuite/gdc.test/fail_compilation/fail218.d

raw
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/fail218.d(15): Error: cannot modify string literal `", "`
5 ---
6 */
7
8 // https://issues.dlang.org/show_bug.cgi?id=1788
9 // dmd segfaults without info
10 void main()
11 {
12 string a = "abc";
13 double b = 7.5;
14
15 a ~= ", " ~= b;
16 }