1 /* { dg-options "-O2 -Wuninitialized" } */
2 
EmptyEmpty3 struct Empty { Empty() {} }; /* { dg-bogus "uninitialized" } */
4 struct Other {
OtherOther5     Other(const Empty& e_) : e(e_) {}
6     Empty e;
7 };
8 void bar(Other&);
foo()9 void foo()
10 {
11   Empty e;
12   Other o(e);
13   bar(o);
14 }
15 
16