Debian Codegraph @

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

raw
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/fail19897.d(12): Error: cannot implicitly convert expression `a.x` of type `const(char[0])` to `const(char)`
5 ---
6 */
7 struct S
8 {
9 char[0] x;
10 }
11 const a = S('a');
12 const char c = a.x;