Debian Codegraph @

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

raw
1 // REQUIRED_ARGS: -o-
2 // PERMUTE_ARGS:
3
4 class Foo
5 {
6 void foo()
7 {
8 foreach (f; __traits(getOverloads, typeof(this), "bar"))
9 {
10 auto dg = &f;
11 }
12
13 foreach (f; __traits(getVirtualMethods, typeof(this), "bar"))
14 {
15 auto dg = &f;
16 }
17 }
18
19 uint bar() { return 0; }
20 }