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

     1  /* PR rtl-optimization/78559 */
     2  
     3  int g = 20;
     4  int d = 0;
     5  
     6  short
     7  fn2 (int p1, int p2)
     8  {
     9    return p2 >= 2 || 5 >> p2 ? p1 : p1 << p2;
    10  }
    11  
    12  int
    13  main ()
    14  {
    15    int result = 0;
    16  lbl_2582:
    17    if (g)
    18      {
    19        for (int c = -3; c; c++)
    20          result = fn2 (1, g);
    21      }
    22    else
    23      {
    24        for (int i = 0; i < 2; i += 2)
    25          if (d)
    26            goto lbl_2582;
    27      }
    28    if (result != 1)
    29      __builtin_abort ();
    30    return 0;
    31  }
    32  
    33  
    34