rt_gccstream/gcc/testsuite/gcc.c-torture/compile/20011229-2.c

18 lines
229 B
C

/* 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);
}