Debian Codegraph @

gcc/testsuite/gcc.dg/debug/redecl-2.c

raw
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 <[email protected]> */
5 /* { dg-do compile } */
6 /* { dg-options "" } */
7
8 typedef int IA[];
9 typedef int A5[5];
10 typedef int A10[10];
11
12 A10 array10;
13
14 A5 *ap;
15 void
16 f (void)
17 {
18 int ap;
19 {
20 extern IA *ap;
21 /* This assignment is valid. */
22 ap = &array10;
23 }
24 }