1 // Test for checking of exception specifications on defaulted fns
2 // { dg-options -std=c++0x }
3 
4 struct A
5 {
6   A() noexcept = default;
7 };
8 
9 struct B
10 {
11   B() throw (int) = default; // { dg-error "exception-specification that differs from the implicit declaration" }
12 };
13 
14 struct C
15 {
throwC16   C() throw (int) { }
17 };
18 
19 struct D: C
20 {
21   D() throw (int) = default;
22 };
23 
24 struct E
25 {
26   E() = default;
27 };
28