Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/noexcept86.C

raw
1 // PR c++/114349
2 // { dg-do compile { target c++14 } }
3
4 struct B
5 {
6 int i;
7 };
8
9 template <bool BA>
10 void
11 goo ()
12 {
13 constexpr bool is_yes = BA;
14 struct C
15 {
16 static auto g(B b) noexcept(is_yes) { }
17 };
18 C::g({});
19 }
20
21 void
22 x ()
23 {
24 goo<false>();
25 }