2008-01-25 Douglas Gregor <doug.gregor@gmail.com>
[official-gcc.git] / gcc / testsuite / gcc.dg / redecl-12.c
blob58041ef8e355c3ad6ad70d94c1eef91efd626bf0
1 /* Some incompatible external linkage declarations were not diagnosed.
2 Bug 21342. */
3 /* Origin: Joseph Myers <joseph@codesourcery.com> */
4 /* { dg-do compile } */
5 /* { dg-options "" } */
7 extern int a[];
8 void f(void) { extern int a[]; extern int a[10]; } /* { dg-error "previous declaration of 'a' was here" } */
9 extern int a[5]; /* { dg-error "conflicting types for 'a'" } */