aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/pr58997.c
blob: 2c7a0f82c8aac3780768dae5b9076779c91455ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* PR rtl-optimization/58997 */

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

void
foo ()
{
  while (b)
    {
      d = a ? c : 1 % a;
      c = d;
      h = d;
      if (!h)
	while (e)
	  ;
    }
}