☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
gdc.test
/
fail_compilation
/
fail19897.d
☽
☼
gcc/testsuite/gdc.test/fail_compilation/fail19897.d
code
plain
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;