summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/20011229-2.c
blob: bb49bd18e3433a2bdb2f9565c5988404485fb4fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* Test whether jump threading doesn't ICE if redirecting the jump to exit
   block.  */

extern int bar ();
extern void baz ();

void foo ()
{
  int x;

  do
    {
      if ((x = bar ()) == 1)
	baz ();
    }
  while (x == 1);
}