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

     1  /* PR rtl-optimization/71916 */
     2  
     3  int a, b, c, d, f, g;
     4  short h;
     5  
     6  short
     7  foo (short p1)
     8  {
     9    return a >= 2 || p1 > 7 >> a ? p1 : p1 << a;
    10  }
    11  
    12  void
    13  bar (void)
    14  {
    15    for (;;)
    16      {
    17        int i, j[3];
    18        h = b >= 2 ? d : d >> b;
    19        if (foo (f > h ^ c))
    20  	{
    21  	  d = 0;
    22  	  while (f <= 2)
    23  	    {
    24  	      char k[2];
    25  	      for (;;)
    26  		k[i++] = 7;
    27  	    }
    28  	}
    29        else
    30  	for (;;)
    31  	  g = j[2];
    32        if (g)
    33  	for (;;)
    34  	  ;
    35      }
    36  }