This commit was manufactured by cvs2svn to create branch 'gomp-branch'.
[official-gcc.git] / gcc / testsuite / g++.dg / tc1 / dr56.C
bloba5caea82655ec65d711a9e3a3c02a7d64214af43
1 // { dg-do compile }
2 // Origin: Giovanni Bajo <giovannibajo at gcc dot gnu dot org>
3 // DR56: Redeclaring typedefs within classes 
5 class X { 
6   typedef int I; 
7   typedef int I;  // { dg-error "" "Cannot redeclare a typedef in a class scope" { xfail *-*-* } }
8 };
10 // In non-class scope, they are allowed.
11 typedef int A;
12 typedef int A;