summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/951115-1.c
blob: 03520c99ca256339f592c84aa7908fbc9a3673d7 (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
int var = 0;

g ()
{
  var = 1;
}

f ()
{
  int f2 = 0;

  if (f2 == 0)
    ;

  g ();
}

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