Debian Codegraph @

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

raw
1 // https://issues.dlang.org/show_bug.cgi?id=21438
2
3 int genGBPLookup() {
4 static struct Table {
5 int[1] entries;
6 }
7
8 auto table = new Table;
9 auto x = table.entries[0];
10
11 static assert(is(typeof(x) == int));
12 return 0;
13 }
14
15 enum x = genGBPLookup;