* auto-profile.c (afdo_annotate_cfg): Use update_max_bb_count.
[official-gcc.git] / gcc / testsuite / g++.dg / init / uninitialized1.C
blobe8509ff4b70fbb8f0c5257eb62931037f53656ae
1 // PR c++/58126
3 struct A { // { dg-error "uninitialized" "" { target c++11 } }
4   const int value1; // { dg-message "should be initialized" }
5   int& value2; // { dg-message "should be initialized" }
6 };
8 struct B : A { };       // { dg-error "deleted" "" { target c++11 } }
10 A a;  // { dg-error "deleted|uninitialized const member in 'struct A'|uninitialized reference member in 'struct A'" }
12 B b;  // { dg-error "deleted|uninitialized const member in base 'struct A' of 'struct B'|uninitialized reference member in base 'struct A' of 'struct B'" }