Debian Codegraph @

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

raw
1 // PR c++/109761
2 // { dg-do compile { target c++11 } }
3
4 struct base {
5 virtual void foo() noexcept { }
6 virtual ~base() { }
7 };
8
9 struct outer : base {
10 struct nested {
11 void foo() noexcept(noexcept(g())); // { dg-bogus "looser" }
12 ~nested() noexcept(noexcept(g())); // { dg-bogus "looser" }
13 };
14 static void g();
15 };
16