(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
pr42084.c
       1  /* { dg-do run } */
       2  /* { dg-options "-O1 -fno-delete-null-pointer-checks" } */
       3  extern void abort (void);
       4  int g = 0;
       5  static int __attribute__((noinline)) f (long long a, long long b)
       6  {
       7    int cmp;
       8    cmp = a > b;
       9    if (&g == 0)
      10      cmp-=2;
      11    else
      12      cmp++;
      13    return cmp;
      14  }
      15  
      16  int main (void)
      17  {
      18    int ret = f (2, 1);
      19    if (ret != 2)
      20      abort ();
      21    return 0;
      22  }