2014-04-15 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / c99-typedef-1.c
blob8aacb3bc2d71c91159c42558ddb57d7b9a373ef3
1 /* Test typedef redeclaration not permitted in C99. */
2 /* { dg-do compile } */
3 /* { dg-options "-std=iso9899:1999 -pedantic-errors" } */
5 typedef int TI; /* { dg-message "previous declaration" } */
6 typedef int TI; /* { dg-error "redefinition of typedef" } */