summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/20020605-1.c
blob: 960a4be7ed119492c1c5ea47325780e4b493deb4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* This testcase caused on IA-32 -O2 endless loop in
   merge_blocks when trying to merge a basic block
   with itself.  */

void f (void)
{
  char *c;
  do
    {
      if (c)
	break;
    }
  while (1);
  if (!c)
    while (1)
      f ();
}