OSDN Git Service

config/
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / old-style-prom-2.c
1 /* Test for prototype followed by old-style definition, as in
2    dremf-type-compat-2.c but with a non-built-in function.  */
3 /* { dg-do compile } */
4 /* { dg-options "-pedantic" } */
5
6 float f (float, float); /* { dg-warning "prototype declaration" } */
7
8 float
9 f (x, y)
10      float x;
11      float y;
12 { /* { dg-warning "promoted argument '.' doesn't match prototype" } */
13   return x + y;
14 }