gcc/testsuite/gcc.dg/pr59963-1.c
raw| 1 | /* PR c/59963 */ |
| 2 | /* { dg-do compile } */ |
| 3 | /* { dg-options "-std=gnu89 -Wdouble-promotion" } */ |
| 4 | |
| 5 | extern void baz (); |
| 6 | extern void qux (int, ...); |
| 7 | |
| 8 | void |
| 9 | foo (float f) |
| 10 | { |
| 11 | bar (f); /* { dg-warning "8:implicit conversion" } */ |
| 12 | baz (f); /* { dg-warning "8:implicit conversion" } */ |
| 13 | qux (42, f); /* { dg-warning "12:implicit conversion" } */ |
| 14 | } |