Merged revisions 208012,208018-208019,208021,208023-208030,208033,208037,208040-20804...
[official-gcc.git] / main / gcc / testsuite / gcc.dg / debug / redecl-2.c
blob2bf661fdcf0f479600e70604ab6e61a98471e2a3
1 /* Test for multiple declarations and composite types. As in bug
2 13801. Illustrates how bug causes correct code to be wrongly
3 diagnosed. Debug test: avoid ICE. */
4 /* Origin: Joseph Myers <jsm@polyomino.org.uk> */
5 /* { dg-do compile } */
6 /* { dg-options "" } */
8 typedef int IA[];
9 typedef int A5[5];
10 typedef int A10[10];
12 A10 array10;
14 A5 *ap;
15 void
16 f (void)
18 int ap;
20 extern IA *ap;
21 /* This assignment is valid. */
22 ap = &array10;