* decl.c (make_typename_type): s/parameters/arguments/.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / gen-attrs-32.C
blob6a1b235d7f3342944adf26b2f1fb01d44cc4e3b8
1 // PR c++/35315
2 // { dg-do compile { target c++11 } }
4 typedef union { int i; } U [[gnu::transparent_union]]; // { dg-warning "ignored" }
6 static void foo(U) {}
7 static void foo(int) {}
9 void bar()
11   foo(0);
14 typedef union U1 { int i; } U2 [[gnu::transparent_union]]; // { dg-warning "ignored" }
16 static void foo2(U1) {}         // { dg-message "previously defined" }
17 static void foo2(U2) {}         // { dg-error "redefinition" }
19 void bar2(U1 u1, U2 u2)
21   foo2(u1);
22   foo2(u2);
25 // PR c++/36410
26 struct A
28   typedef union [[gnu::transparent_union]]
29   {
30     int i;
31   } B;
34 void foo(A::B b)
36   b.i;