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

     1  /* { dg-options "-g" } */
     2  
     3  void bar (void);
     4  
     5  static int
     6  foo (int x, int y)
     7  {
     8    if (y)
     9      goto lab;
    10    if (x)
    11      y = 0;
    12    if (y)
    13      goto lab;
    14    y = 0;
    15  lab:
    16    return y;
    17  }
    18  
    19  void
    20  baz (int x, int y)
    21  {
    22    y = foo (x, y);
    23    if (y != 0)
    24      bar ();
    25  }