summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr105185.c
blob: 6ab32360de1145cfeb4b92b029f6a30a21a965f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* { dg-do compile } */

int foo (fmt)
char* fmt;
{
  return (__builtin_strchr (fmt, '*') != 0
          || __builtin_strchr (fmt, 'n') != 0);
}
void bar ()
{
  if (foo ())
    __builtin_abort ();
}