summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr88427.c
blob: 60b179c671ba2d46a264b85b15fdd35cb87d0301 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* { dg-do compile } */
/* { dg-options "-O2 -fno-tree-dce -fno-tree-fre -Wno-div-by-zero" } */

void
uj (int eq, int s4)
{
  short int tm = 0;

  for (;;)
    if (eq == s4)
      {
	tm += !!s4;
	if (tm == s4)
	  {
	    eq += tm;
	    for (;;)
	      eq /= 0;
	  }
      }
}