2 // Origin: Giovanni Bajo <giovannibajo at gcc dot gnu dot org>
3 // DR101: Redeclaration of extern "C" names via using-declarations
7 typedef unsigned int X;
10 typedef unsigned int X;
13 using N::f1; // { dg-bogus "" "redeclaration through 'using' should not be ambiguous" }
14 using N::X; // { dg-bogus "" "redeclaration through 'using' should not be ambiguous" }
20 typedef unsigned int X; // { dg-bogus "X" "" }
23 typedef unsigned int X; // { dg-bogus "X" "" }
27 int i = f2(); // { dg-bogus "" "redeclaration through 'using' should not be ambiguous" }
28 X x; // { dg-bogus "" "redeclaration through 'using' should not be ambiguous" }