* decl.c (make_typename_type): s/parameters/arguments/.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / union2.C
blob514409414dc8aca5f24e2828bfec7d4deda1b750
1 // Positive test for C++11 unrestricted unions
2 // { dg-do compile { target c++11 } }
4 struct A
6   A();
7   A(const A&);
8   ~A();
9 };
11 union B
13   A a;
14   B();
15   B(const B&);
16   ~B();
19 B b;
20 B b2(b);
22 struct C
24   union
25   {
26     A a;
27   };
28   C();
29   C(const C&);
30   ~C();
33 C c;
34 C c2(c);