Debian Codegraph @

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

raw
1 // https://issues.dlang.org/show_bug.cgi?id=20710
2
3 // with empty array literal
4 immutable A a = A(B([]));
5 immutable B b = a.b;
6
7 struct A {
8 B b;
9 }
10
11 struct B {
12 int[] c;
13 }
14
15 // with empty struct literal
16 immutable C c = C(D());
17 immutable D d = c.d;
18
19 struct C {
20 D d;
21 }
22
23 struct D {
24 }