aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr20368-1.c
blob: ac76c16f78356dd26023b25dfc52bc7b31c2043b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* ICE with -Wstrict-prototypes and typeof an undeclared function.
   Bug 20368.  */
/* { dg-do compile } */
/* { dg-options "-Wstrict-prototypes" } */

extern __typeof (f) g; /* { dg-error "'f' undeclared here \\(not in a function\\)" } */

int
f (x)
     float x; /* { dg-warning "function declaration isn't a prototype" } */
{
}