(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.c-torture/
execute/
pr49039.c
       1  /* PR tree-optimization/49039 */
       2  extern void abort (void);
       3  int cnt;
       4  
       5  __attribute__((noinline, noclone)) void
       6  foo (unsigned int x, unsigned int y)
       7  {
       8    unsigned int minv, maxv;
       9    if (x == 1 || y == -2U)
      10      return;
      11    minv = x < y ? x : y;
      12    maxv = x > y ? x : y;
      13    if (minv == 1)
      14      ++cnt;
      15    if (maxv == -2U)
      16      ++cnt;
      17  }
      18  
      19  int
      20  main ()
      21  {
      22    foo (-2U, 1);
      23    if (cnt != 2)
      24      abort ();
      25    return 0;
      26  }