* decl.c (make_typename_type): s/parameters/arguments/.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / implicit13.C
blob3165863c6391590e09dde6743c95746507dc3b6c
1 // Make sure that A's destructor doesn't affect constexpr
2 // or exception-spec on D's default constructor.
3 // { dg-do compile { target c++11 } }
5 struct A {
6   constexpr A() noexcept: i(0) { }
7   int i;
8   ~A() noexcept(false);
9 };
11 struct B: A { };
13 // Should get static initialization, so no constructor call.
14 // { dg-final { scan-assembler-not "_ZN1BC1Ev" } }
15 B b;
17 struct C { C() noexcept; ~C() noexcept(false); };
18 struct D: C { };
19 extern D d;
21 void *operator new(__SIZE_TYPE__, void*) noexcept;
23 #define SA(X) static_assert((X),#X)
24 SA(noexcept(new (&d) D));
26 struct E: virtual C { };
27 extern E e;
28 SA(noexcept (new (&e) E));
30 struct F { C c; };
31 extern F f;
32 SA(noexcept (new (&f) F));