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

     1  static inline int foo (unsigned _si1)
     2  {
     3    if (_si1 != 0)
     4      if (_si1 > 2147483647)
     5        return 1;
     6    return 0;
     7  }
     8  
     9  static inline unsigned bar (unsigned _left, int _right)
    10  {
    11    return (unsigned) _right >= 8 ? 1 : _left >> _right;
    12  }
    13  
    14  unsigned g_2;
    15  unsigned g_67;
    16  volatile unsigned g_162;
    17  
    18  static inline int func_62 (unsigned p_63)
    19  {
    20    p_63 = g_2 & g_67;
    21    if (g_2)
    22      ;
    23    else if (p_63)
    24      return 1;
    25    g_67 = bar (p_63, g_2);
    26    return 0;
    27  }
    28  
    29  unsigned baz (void)
    30  {
    31    if (g_2)
    32      for (; g_2 <= -16; g_2 = foo (g_2))
    33        {
    34          for (; g_162; g_162)
    35            func_62 (func_62 (0));
    36          if (g_67)
    37            break;
    38        }
    39    return g_2;
    40  }
    41