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

     1  /* PR middle-end/86864 */
     2  /* Testcase by Serge Belyshev <belyshev@depni.sinp.msu.ru> */
     3  
     4  long a;
     5  void f ();
     6  void g (int b, int c, int d)
     7  {
     8    switch (b)
     9      {
    10      case 42:
    11      case 29:
    12      case 48:
    13      case 40:
    14      case 32:
    15        c = 2;
    16        break;
    17      case 0:
    18        c = 1;
    19        break;
    20      default:
    21        __builtin_unreachable ();
    22      }
    23    if (d || a)
    24      f ();
    25    if (c == 1)
    26      f ();
    27  }