summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr20368-1.c
blob: 4140397c1427d54491d3bbaf64951733ab67419e (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) /* { dg-warning "function declaration isn't a prototype" } */
     float x;
{
}