(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.c-torture/
execute/
pr106032.c
       1  /* PR rtl-optimization/106032 */
       2  
       3  __attribute__((noipa)) int
       4  foo (int x, int *y)
       5  {
       6    int a = 0;
       7    if (x < 0)
       8      a = *y;
       9    return a;  
      10  }
      11  
      12  int
      13  main ()
      14  {
      15    int a = 42;
      16    if (foo (0, 0) != 0 || foo (1, 0) != 0)
      17      __builtin_abort ();
      18    if (foo (-1, &a) != 42 || foo (-42, &a) != 42)
      19      __builtin_abort ();
      20    return 0;
      21  }