Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / gcc.dg / old-style-prom-2.c
blob5f4d877624e8eb0fcfab9812acd9c6d8094926a1
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 "warning: prototype declaration" } */
8 float
9 f (x, y)
10 float x;
11 float y;
12 { /* { dg-warning "warning: promoted argument '.' doesn't match prototype" } */
13 return x + y;