PR middle-end/85602 - -Wsizeof-pointer-memaccess for strncat with size of source
[official-gcc.git] / gcc / testsuite / gcc.dg / dremf-type-compat-1.c
blob79c55ef840c54e83d8645c99129b8b5e5a34fe54
1 /* Test for bogus diagnostics for dremf definition. Although this
2 definition is formally incorrect in ISO C, a GNU extension permits
3 a prototype followed by unpromoted types in a function definition,
4 so it should be permitted when the function is built in. Bug
5 16666. */
6 /* { dg-do compile } */
7 /* { dg-options "" } */
9 float dremf (float, float);
11 float
12 dremf (x, y)
13 float x, y;
15 return x + y;