Debian Codegraph @

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

raw
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/fail106.d(12): Error: cannot modify `immutable` expression `"ABC"[2]`
5 ---
6 */
7
8 // https://issues.dlang.org/show_bug.cgi?id=239
9 // Internal error: changing string literal elements
10 void main()
11 {
12 "ABC"[2] = 's';
13 }