2014-07-29 Ed Smith-Rowland <3dw4rd@verizon.net>
[official-gcc.git] / gcc / testsuite / gcc.dg / redecl-9.c
blob6fe25800e18745923639324d61e601655f376836
1 /* Test for multiple declarations and composite types, as in bug
2 13801. Test types saved from outer scopes are up to date. */
3 /* Origin: Joseph Myers <jsm@polyomino.org.uk> */
4 /* { dg-do compile } */
5 /* { dg-options "" } */
7 int x[];
9 void
10 f (void)
12 extern int x[];
15 int x[10];
17 void
18 g (void)
20 int x;
22 extern int x[10];
26 void
27 h (void)
29 sizeof (x);