Debian Codegraph @

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

raw
1 // DR 1351, Problems with implicitly-declared exception-specifications
2 // { dg-do compile { target c++11 } }
3
4 struct B {
5 virtual void f() noexcept;
6 virtual void g();
7 virtual void h() noexcept = delete;
8 };
9
10 struct D: B {
11 void f(); // { dg-error "looser" }
12 void g() noexcept; // OK
13 void h() = delete; // OK
14 };