* auto-profile.c (afdo_annotate_cfg): Use update_max_bb_count.
[official-gcc.git] / gcc / testsuite / g++.dg / lookup / friend9.C
blobcaf685c3eced4e43ad4e84554065575e68521102
1 // PR c++/25492
3 class Base {
4 public:
5   class Nested {};
6 };
8 class Derived:public Base {
9 public:
10   class Nested {
11   public:
12     void m();
13   };
14   class AnotherNested {
15     friend class Nested;
16     AnotherNested() {}
17   };
20 void Derived::Nested::m() {
21   Derived::AnotherNested instance;