aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/pr46002.c
blob: 27a3a3a284c607c2215ea461f056676997417c26 (plain)
1
2
3
4
5
6
7
8
9
10
/* { dg-options "-fira-algorithm=priority" } */
char **
foo (char **p, char *cmp, unsigned i)
{
  for (; *p; p++)
    if (__builtin_strncmp (*p, cmp, i))
      if (i == __builtin_strlen (*p))
	break;
  return p;
}