summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/930622-1.c
blob: d733e133d35af6d3608b390f90e35e442039b2a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
int a = 1, b;

g () { return 0; }
h (x) {}

f ()
{
  if (g () == -1)
    return 0;
  a = g ();
  if (b >= 1)
    h (a);
  return 0;
}

main ()
{
  f ();
  if (a != 0)
    abort ();
  exit (0);
}