* decl.c (make_typename_type): s/parameters/arguments/.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / defaulted43.C
blobf2846fe390c7b07987c555dfff6a3f7900e30b2d
1 // PR c++/53903
2 // { dg-do compile { target c++11 } }
4 struct T
6   T() noexcept(false) { }
7   ~T() noexcept(false) { }
8 };
10 T t;
12 struct A
14   A() noexcept;
15   ~A() noexcept;
17   T t;
20 A::A() noexcept = default;   // { dg-error "defaulted" }
21 A::~A() noexcept = default;  // { dg-error "defaulted" }
23 struct U
25   U() noexcept(false) { }
26   ~U() noexcept(false) { }
29 U u;
31 struct B
33   B() noexcept(false);
34   ~B() noexcept(false);
36   U u;
39 B::B() noexcept(false) = default;
40 B::~B() noexcept(false) = default;
42 B b;
44 struct V
46   V() noexcept(false) { }
47   ~V() noexcept(false) { }
50 V v;
52 struct C
54   C() noexcept = default;       // { dg-message "exception-specification" }
55   ~C() noexcept = default;      // { dg-message "exception-specification" }
57   V v;
60 C c;                            // { dg-error "deleted" }