Debian Codegraph @

gcc/testsuite/g++.dg/init/ref23.C

raw
1 // PR c++/80176
2 // { dg-do compile }
3
4 struct X { static void foo(); static void baz(int); static int baz(double); } x;
5 struct Y { void o(unsigned char); static void o(int); void o(double); } y;
6 void X::foo() {}
7 static void bar() {}
8 void (&r1)() = x.foo;
9 void (&r2)() = X::foo;
10 void (&r3)() = bar;
11 void (&r4)(int) = x.baz;
12 int (&r5)(double) = x.baz;
13 void (&r6)(int) = X::baz;
14 int (&r7)(double) = X::baz;
15 void (&r8)(int) = y.o;