modernc.org/ccgo/v3@v3.16.14/lib/testdata/gcc-9.1.0/gcc/testsuite/gcc.c-torture/compile/20011229-2.c (about)

     1  /* Test whether jump threading doesn't ICE if redirecting the jump to exit
     2     block.  */
     3  
     4  extern int bar ();
     5  extern void baz ();
     6  
     7  void foo ()
     8  {
     9    int x;
    10  
    11    do
    12      {
    13        if ((x = bar ()) == 1)
    14  	baz ();
    15      }
    16    while (x == 1);
    17  }