Debian Codegraph @

gcc/testsuite/gdc.test/compilable/test19519.d

raw
1 struct S { char[1] e = void; }
2
3 void init(ref char[1] e)
4 {
5 e[0 .. 1] = "A";
6 }
7
8 int foo()
9 {
10 auto s = S();
11 init(s.e);
12 return __ctfe;
13 }
14
15 static assert(foo() == 1);