Debian Codegraph @

gcc/testsuite/g++.dg/conversion/memfn1.C

raw
1 // PR c++/36334
2
3 struct X
4 {
5 typedef int* foobar();
6 static void foo(foobar&);
7 };
8
9 void X::foo(foobar&)
10 {
11 }
12
13 struct Y : public X
14 {
15 static foobar bar;
16 static void foo();
17 };
18
19 void Y::foo()
20 {
21 X::foo(bar);
22 }
23 int* Y::bar()
24 {
25 return 0;
26 }