summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/951003-1.c
blob: 269bf13538617f60f1e3bc485925c3f1d04213eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
int f (i) { return 12; }
int g () { return 0; }

main ()
{
  int i, s;

  for (i = 0; i < 32; i++)
    {
      s = f (i);

      if (i == g ())
	s = 42;
      if (i == 0 || s == 12)
	;
      else
	abort ();
    }

  exit (0);
}