1 /* Test for multiple declarations and composite types. As in bug 2 13801. Illustrates how bug causes correct code to be wrongly 3 diagnosed. */ 4 /* Origin: Joseph Myers <jsm@polyomino.org.uk> */ 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 f(void)16f (void) 17 { 18 int ap; 19 { 20 extern IA *ap; 21 /* This assignment is valid. */ 22 ap = &array10; 23 } 24 } 25