Debian Codegraph @

gcc/testsuite/g++.dg/init/empty2.C

raw
1 // PR c++/86485
2 // { dg-additional-options -Wmaybe-uninitialized }
3
4 struct E {};
5 struct S { S () {} E e; };
6 void foo (S);
7
8 void
9 bar (bool b)
10 {
11 foo (b ? S () : S ());
12 }