Debian Codegraph @

gcc/testsuite/g++.dg/warn/Wnoexcept2.C

raw
1 // PR c++/93805
2 // { dg-do compile { target c++11 } }
3 // { dg-additional-options "-Wnoexcept" }
4
5 struct B
6 {
7 B() {}
8 };
9
10 struct C
11 {
12 B b = B();
13 };
14
15 C c; // { dg-bogus "noexcept-expression" }