]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gcc.dg/old-style-prom-3.c
replace ISL with isl
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / old-style-prom-3.c
CommitLineData
46097c76
JM
1/* Test for prototype followed by old-style definition, as in
2 dremf-type-compat-3.c but with a non-built-in function. */
3/* { dg-do compile } */
4/* { dg-options "-pedantic-errors" } */
5
ad0637fd 6float f (float, float); /* { dg-error "prototype declaration" } */
46097c76
JM
7
8float
9f (x, y)
c2255bc4
AH
10 float x; /* { dg-error "promoted argument 'x' doesn't match prototype" } */
11 float y; /* { dg-error "promoted argument 'y' doesn't match prototype" } */
12{
46097c76
JM
13 return x + y;
14}