Daily bump.
[gcc.git] / gcc / testsuite / g++.dg / warn / Wuninitialized-18.C
blob29ae77a39f5b1f05cf295cd9b67e57bc423ea1bb
1 // PR c++/96121
2 // { dg-do compile { target c++11 } }
3 // { dg-options "-Wuninitialized" }
5 struct A {
6   A();
7   int i;
8 };
9 struct B {
10   B(A);
11   int i;
14 struct composed2 {
15   B b_;
16   A a_;
17   composed2() : b_(a_) {} // { dg-warning "member .composed2::a_. is used uninitialized" }
20 composed2 test() {
21     return composed2{};