This commit was manufactured by cvs2svn to create branch

'gcc-3_2-branch'.

From-SVN: r57996
This commit is contained in:
No Author 2002-10-09 21:31:03 +00:00
parent dd2aae0c92
commit 6959d4f74b
2 changed files with 23 additions and 0 deletions

View File

@ -0,0 +1,14 @@
/* { dg-do compile } */
/* { dg-options "-fpermissive" } // suppress default -pedantic-errors */
/* This code used to be a legitimate, if dubious, extension. However,
it's been broken since GCC 3.0 (caused ICE) and we have now removed
the extension. See PR c/7353.
C++ issues a warning in addition to the error, since this construct
appears to be a case of implicit int (forbidden in std. C++) until
we get to the equals sign. */
typedef A = 0; /* { dg-error "initialized" "typedef A = B" } */
/* { dg-warning "no type" "also warns" { target *-*-* } 12 } */
A a; /* { dg-bogus "" "no error cascade" } */

View File

@ -0,0 +1,9 @@
/* { dg-do compile } */
/* { dg-options "-std=gnu89" } // suppress default -pedantic-errors */
/* This code used to be a legitimate, if dubious, extension. However,
it's been broken since GCC 3.0 (caused ICE) and we have now removed
the extension. See PR c/7353. */
typedef A = 0; /* { dg-error "initialized" "typedef A = B" } */
A a; /* { dg-bogus "" "no error cascade" } */