summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/941110-1.c
blob: b78256d3c3f4018f0d4e5ff84650815767cd3d86 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
f (const int x)
{
  int y = 0;
  y = x ? y : -y;
  {
    const int *p = &x;
  }
  return y;
}

main ()
{
  if (f (0))
    abort ();
  exit (0);
}