aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/torture/pr61452.c
blob: a62de30fd8468809db8f072c28695272e2ad3b73 (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
31
/* { dg-do run } */

int a, b;
short c, d;
char e, f;

int
fn1 (int p1, char p2)
{
  return p1 || p2 ? 0 : p2;
}

void
fn2 ()
{
  for (; a;)
    {
      int g;
      g = c = e;
      for (; a;)
	b = fn1 (g = d = e, g);
      f = g; 
    }
}

int
main ()
{
  fn2 (); 
  return 0;
}