2009-07-17 Richard Guenther <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / old-style-prom-2.c
blobe7e690e141751768a026c5250f84937207032e1a
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" } */
6 float f (float, float); /* { dg-warning "prototype declaration" } */
8 float
9 f (x, y)
10 float x; /* { dg-warning "promoted argument 'x' doesn't match prototype" } */
11 float y; /* { dg-warning "promoted argument 'y' doesn't match prototype" } */
13 return x + y;