4 struct A1 // { dg-error "uninitialized" "" { target c++11 } }
6 int const j; // { dg-message "should be initialized" }
9 struct A2 // { dg-error "uninitialized" "" { target c++11 } }
11 int const volatile i; // { dg-message "should be initialized" }
14 struct A3 // { dg-error "uninitialized" "" { target c++11 } }
16 int& ref; // { dg-message "should be initialized" }
19 struct A4 // { dg-error "uninitialized" "" { target c++11 } }
21 int const& ref; // { dg-message "should be initialized" }
24 struct A5 // { dg-error "uninitialized" "" { target c++11 } }
26 int& ref; // { dg-message "should be initialized" }
27 int const i; // { dg-message "should be initialized" }
30 template <class T> struct S1 // { dg-error "uninitialized" "" { target c++11 } }
32 T const i; // { dg-message "should be initialized" }
35 template <class T> struct S2 // { dg-error "uninitialized" "" { target c++11 } }
37 T const volatile i; // { dg-message "should be initialized" }
40 template <class T> struct S3 // { dg-error "uninitialized" "" { target c++11 } }
42 T& ref; // { dg-message "should be initialized" }
45 template <class T> struct S4 // { dg-error "uninitialized" "" { target c++11 } }
47 T const i; // { dg-message "should be initialized" }
48 T& ref; // { dg-message "should be initialized" }
53 X () : c (0), r (c) {}
58 struct Y11 // { dg-error "uninitialized" "" { target c++11 } }
60 int const i; // { dg-message "should be initialized" }
63 struct Y1 // { dg-error "deleted" "" { target c++11 } }
68 struct Y22 // { dg-error "uninitialized" "" { target c++11 } }
70 int& ref; // { dg-message "should be initialized" }
73 struct Y2 // { dg-error "deleted" "" { target c++11 } }
78 struct Z1 // { dg-error "uninitialized" "" { target c++11 } }
80 int const i; // { dg-message "should be initialized" }
83 struct Z2 // { dg-error "uninitialized" "" { target c++11 } }
85 int& ref; // { dg-message "should be initialized" }
88 struct Z3 // { dg-error "uninitialized" "" { target c++11 } }
90 int const i; // { dg-message "should be initialized" }
93 struct Z4 // { dg-error "uninitialized" "" { target c++11 } }
95 int& ref; // { dg-message "should be initialized" }
103 struct Z // { dg-error "deleted" "" { target c++11 } }
112 union U // { dg-error "uninitialized" "" { target c++11 } }
114 int const i; // { dg-message "should be initialized" }
120 A1 a1; // { dg-error "uninitialized const member|deleted" }
125 A2 a2; // { dg-error "uninitialized const member|deleted" }
130 A3 a3; // { dg-error "uninitialized reference member|deleted" }
135 A4 a4; // { dg-error "uninitialized reference member|deleted" }
140 A5 a5; // { dg-error "uninitialized reference member|uninitialized const member|deleted" }
145 S1<int> s; // { dg-error "uninitialized const member|deleted" }
150 S2<int> s; // { dg-error "uninitialized const member|deleted" }
155 S3<int> s; // { dg-error "uninitialized reference member|deleted" }
160 S4<int> s; // { dg-error "uninitialized reference member|uninitialized const member|deleted" }
170 A1 a[ 1 ]; // { dg-error "uninitialized const member|deleted" }
175 A3 a[ 1 ]; // { dg-error "uninitialized reference member|deleted" }
180 Y1 y1; // { dg-error "uninitialized const member|deleted" }
185 Y2 y2; // { dg-error "uninitialized reference member|deleted" }
190 Z z; // { dg-error "uninitialized reference member|uninitialized const member|deleted" }
195 U u; // { dg-error "uninitialized const member|deleted" }