* auto-profile.c (afdo_annotate_cfg): Use update_max_bb_count.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp1y / nsdmi-aggr3.C
blob185ea10d1baf0c8f3867048d437dfa149727105a
1 // PR c++/66383
2 // { dg-do compile { target c++11 } }
4 namespace N1 {
5   struct B;
7   struct A
8   {
9     B* b;
10     A(B* b);
11   };
13   struct B
14   {
15     A a{ this };
16   };
18   A::A(B* b): b{ b } {}
20   void foo()
21   {
22     auto b = B{};
23   }
26 namespace N2 {
27   struct B;
29   struct A
30   {
31     B* b;
32   };
34   struct B
35   {
36     A a{ this };
37   };
39   void foo()
40   {
41     auto b = B{};
42   }