2 // { dg-do compile { target c++11 } }
4 typedef union { int i; } U [[gnu::transparent_union]]; // { dg-warning "ignored" }
7 static void foo(int) {}
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)
28 typedef union [[gnu::transparent_union]]