1 /* PR c/70791 */ 2 /* { dg-do compile } */ 3 /* { dg-options "-Wnested-externs" } */ 4 5 void bar(void)6bar (void) 7 { 8 extern int i; /* { dg-warning "14:nested extern declaration of 'i'" } */ 9 extern short foo (void); /* { dg-warning "16:nested extern declaration of 'foo'" } */ 10 extern struct S *s; /* { dg-warning "20:nested extern declaration of 's'" } */ 11 } 12