blob: 7b1b90b944d3ce8269418556632710072930f3da [file] [log] [blame]
/* { dg-options "-O2 -Wuninitialized" } */
struct Empty { Empty() {} }; /* { dg-bogus "uninitialized" } */
struct Other {
Other(const Empty& e_) : e(e_) {}
Empty e;
};
void bar(Other&);
void foo()
{
Empty e;
Other o(e);
bar(o);
}