1 /* Test for the warning about external functions with non-global
2 types. In -traditional mode, these functions are globally visible
3 even if declared in an inner scope, so their return types should
6 /* { dg-do compile } */
7 /* { dg-options -traditional } */
12 struct foo { int a, b; };
14 extern struct foo *bar(); /* { dg-warning "type of external" "good warn" } */
15 extern int baz(); /* { dg-bogus "type of external" "bad warn" } */