* auto-profile.c (afdo_annotate_cfg): Use update_max_bb_count.
[official-gcc.git] / gcc / testsuite / g++.dg / init / const11.C
blob08d5185c09c3e17bc432f949d386fdc7bd5b7f28
1 // PR C++/52369
2 // { dg-do compile { target { ! c++11 } } }
4 class B
6   int const v_; // { dg-message "should be initialized" }
7 };
9 struct D : B {};
11 class A
13   int& ref; // { dg-message "should be initialized" }
16 struct C : A {};
18 void f()
20   D d; // { dg-error "uninitialized" }
21   new D; // { dg-error "uninitialized" }
22   D();
23   new D();
25   C c; // { dg-error "uninitialized" }
26   new C; // { dg-error "uninitialized" }
27   C(); // { dg-error "value-initialization" }
28   new C(); // { dg-error "value-initialization" }