blob: e8509ff4b70fbb8f0c5257eb62931037f53656ae (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
// PR c++/58126
struct A { // { dg-error "uninitialized" "" { target c++11 } }
const int value1; // { dg-message "should be initialized" }
int& value2; // { dg-message "should be initialized" }
};
struct B : A { }; // { dg-error "deleted" "" { target c++11 } }
A a; // { dg-error "deleted|uninitialized const member in 'struct A'|uninitialized reference member in 'struct A'" }
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'" }
|