Debian Codegraph @

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

raw
1 /* PERMUTE_ARGS:
2 */
3 // https://issues.dlang.org/show_bug.cgi?id=16292
4
5 void main()
6 {
7 goto label;
8 if (makeS()[0])
9 {
10 label:
11 }
12 }
13
14 S makeS() { return S(); }
15
16 struct S
17 {
18 int opIndex(size_t i) { return 0; }
19 }