Debian Codegraph @

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

raw
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/ice12581.d(21): Error: undefined identifier `undef`
5 ---
6 */
7
8 struct S
9 {
10 int[3] a;
11 alias a this;
12 }
13 struct T
14 {
15 S s;
16 alias s this;
17 }
18 void main()
19 {
20 T x;
21 x[] = (undef = 1);
22 }