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