summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/pr37976.c
blob: 6b2ba63c0f2ec38a671bd54b529444e7dd7f1664 (plain)
1
2
3
4
5
6
void percent_x(int ch, char *p, char* ok_chars)
{
  char *cp = ch == 'a' ? p : "";
  for (;*(cp += __builtin_strspn (cp, ok_chars));)
    ;
}