]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gdc.test/fail_compilation/fail218.d
Add D front-end, libphobos library, and D2 testsuite.
[thirdparty/gcc.git] / gcc / testsuite / gdc.test / fail_compilation / fail218.d
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/fail218.d(15): Error: cannot modify string literal ", "
5 ---
6 */
7
8 // Issue 1788 - dmd segfaults without info
9
10 void main()
11 {
12 string a = "abc";
13 double b = 7.5;
14
15 a ~= ", " ~= b;
16 }