2 // { dg-require-effective-target c++11 }
3 // { dg-options "-O2 -Wuninitialized" }
7 bool v2{v2}; // { dg-warning "is used uninitialized" }
12 auto const & a = f1();
13 // Diagnose the following when optimizing and as unconditional
14 // uninitialized use despite f1 possibly throwing
15 bool v3{v3}; // { dg-warning "is used uninitialized" }