modernc.org/ccgo/v3@v3.16.14/lib/testdata/gcc-9.1.0/gcc/testsuite/gcc.c-torture/execute/medce-1.c (about)

     1  
     2  extern void abort (void);
     3  extern void link_error (void);
     4  
     5  static int ok = 0;
     6  
     7  void bar (void)
     8  {
     9    ok = 1;
    10  }
    11  
    12  void foo(int x)
    13  {
    14    switch (x)
    15    {
    16    case 0:
    17      if (0)
    18      {
    19        link_error();
    20    case 1:
    21        bar();
    22      }
    23    }
    24  }
    25  
    26  int main()
    27  {
    28    foo (1);
    29    if (!ok)
    30      abort ();
    31    return 0;
    32  }
    33