summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/pr68624.c
blob: abb716b1550038cb3d0e96e8917b7ed0ba8bfa83 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
int b, c, d, e = 1, f, g, h, j;

static int
fn1 ()
{
  int a = c;
  if (h)
    return 9;
  g = (c || b) % e;
  if ((g || f) && b)
    return 9;
  e = d;
  for (c = 0; c > -4; c--)
    ;
  if (d)
    c--;
  j = c;
  return d;
}

int
main ()
{
  fn1 ();

  if (c != -4)
    __builtin_abort ();

  return 0;
}