(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
pr103860.c
       1  /* PR rtl-optimization/103860 */
       2  /* { dg-do run } */
       3  /* { dg-options "-O3" } */
       4  /* { dg-additional-options "-fPIC" { target fpic } } */
       5  
       6  static int d, *e;
       7  int f;
       8  
       9  __attribute__((noinline)) signed char
      10  foo (signed char b, signed char c)
      11  {
      12    return b + c;
      13  }
      14  
      15  int
      16  main ()
      17  {
      18    signed char l;
      19    for (l = -1; l; l = foo (l, 1))
      20      {
      21        while (d < 0)
      22  	;
      23        if (d > 0)
      24  	{
      25  	  f = 0;
      26  	  *e = 0;
      27  	}
      28      }
      29    d = 0;
      30    return 0;
      31  }