summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/pr34029-2.c
blob: 9ec49ec97fa70da0f197e18922b99a6635840ad1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
static const char s[] = "ab.cd.efghijk";
static const char t[] = "abcde";

long
foo (const char *x)
{
  const char *a;
  long b = 0;

  a = __builtin_strchr (s, '.');
  return ((long) a) + (1 - (long) t);
}