Debian Codegraph @

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

raw
1 // REQUIRED_ARGS: -o-
2 // PERMUTE_ARGS:
3
4 struct X
5 {
6 void mfoo(this T)() {}
7 }
8 void test()
9 {
10 shared const X scx;
11
12 scx.mfoo();
13 }
14
15 struct Vec
16 {
17 int x;
18 void sc() shared const {}
19 }