* decl.c (make_typename_type): s/parameters/arguments/.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / implicit2.C
blob2995894424f17a4e31d80804e77ce535406fa627
1 // Test that the synthesized C copy constructor calls the A template
2 // constructor and has the appropriate exception specification.
3 // { dg-do run { target c++11 } }
5 int r = 1;
7 struct A
9   A() {}
10   A(const A&) throw () { }
11   template <class T>
12   A(T& t) { r = 0; }
15 struct B
17   B() {}
18   B(B&) throw () { }
21 struct C: A, B { };
23 #define SA(E) static_assert(E, #E)
25 C c;
26 SA (!noexcept(C(c)));
28 int main()
30   (C(c));
31   return r;