Add qdf24xx base tuning support.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / defaulted23.C
blob9e6cbc37d8972d36ac08b29a6ffddb7cc121a7e8
1 // Test for checking of exception specifications on defaulted fns
2 // { dg-do compile { target c++11 } }
4 struct A
6   A() noexcept = default;
7 };
9 A a;
11 struct B
13   B() throw (int) = default; // { dg-message "exception-specification" }
16 B b;                            // { dg-error "deleted" }
18 struct C
20   C() throw (int) { }
23 C c;
25 struct D: C
27   D() throw (int) = default;
30 D d;
32 struct E
34   E() = default;
37 E e;