summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/pr47141.c
blob: 875e0fdd1c22ac4b70bc9d1fbfb858d5748f17ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
int
foo (__UINTPTR_TYPE__ x)
{
  int a = 6;
  int *b = &a;
  if (x)
    for (a = 0; a; a++)
      ;
  return a;
}

void
bar (void)
{
  foo ((__UINTPTR_TYPE__) foo);
}