* auto-profile.c (afdo_annotate_cfg): Use update_max_bb_count.
[official-gcc.git] / gcc / testsuite / g++.dg / lookup / friend19.C
blob346204b0114bef194a84d1010b4ac543d85963c1
1 // Make sure unhiding friends doesn't unhide similarly named friends
3 struct X
5   friend int foo (X);
6 };
8 struct Y
10   friend int foo (Y);
13 void Baz ()
15   foo (X());
16   foo (Y());
19 int foo (Y);
20 int foo (int);
21 // foo(X) still hidden
23 void Bar ()
25   foo (X());
26   foo (Y());
27   ::foo (X()); // { dg-error "" }
28   ::foo (Y());