Daily bump.
[gcc.git] / gcc / testsuite / g++.dg / cpp0x / noexcept45.C
blob39df4a6571ecb881ee7246a2ad5c79eff014b95f
1 // PR c++/86476 - noexcept-specifier is a complete-class context
2 // { dg-do compile { target c++11 } }
4 struct A
6   virtual void f();
7   virtual void g() noexcept;
8   virtual void h() noexcept(false);
9 };
11 struct B : A
13   void f() noexcept(true);
14   void g() noexcept(true);
15   void h() noexcept(true);
18 struct D : A
20   void f() noexcept(false);
21   void g() noexcept(false); // { dg-error "looser exception specification" }
22   void h() noexcept(false);