gcc/
[official-gcc.git] / gcc / testsuite / gcc.dg / redecl-8.c
blob9145b9fddb5ee188abc6be6205ee88c75a96b8a3
1 /* Test for multiple declarations and composite types. Diagnosis of
2 completion incompatible with implicit initializer. */
4 /* Origin: Joseph Myers <jsm@polyomino.org.uk> */
5 /* { dg-do compile } */
6 /* { dg-options "-g" } */
8 static int x[];
10 void
11 f (void)
13 extern int x[2]; /* { dg-error "completed incompatibly" } */
16 /* The following is OK. */
18 static int y[];
19 void
20 g (void)
22 extern int y[1];