* auto-profile.c (afdo_annotate_cfg): Use update_max_bb_count.
[official-gcc.git] / gcc / testsuite / g++.dg / init / ref23.C
blob12b8851f2b96674100523cbda611d0aeea794110
1 // PR c++/80176
2 // { dg-do compile }
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;