summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr89314.c
blob: 27b3a510bfd0ce2ea509ed74544e417317acec8f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* PR tree-optimization/89314 */
/* { dg-do compile } */
/* { dg-options "-O2 -Wbuiltin-declaration-mismatch -Wextra" } */

extern __SIZE_TYPE__ strlen (const float *);	/* { dg-warning "\\\[-Wbuiltin-declaration-mismatch" } */
void bar (void);

void
foo (float *s)
{
  if (strlen (s) > 0)
    bar ();
}