gcc/testsuite/gcc.dg/pr89314.c
raw| 1 | /* PR tree-optimization/89314 */ |
| 2 | /* { dg-do compile } */ |
| 3 | /* { dg-options "-O2 -Wbuiltin-declaration-mismatch -Wextra" } */ |
| 4 | |
| 5 | extern __SIZE_TYPE__ strlen (const float *); /* { dg-warning "\\\[-Wbuiltin-declaration-mismatch" } */ |
| 6 | void bar (void); |
| 7 | |
| 8 | void |
| 9 | foo (float *s) |
| 10 | { |
| 11 | if (strlen (s) > 0) |
| 12 | bar (); |
| 13 | } |