(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
pr104675-1.c
       1  /* PR tree-optimization/104675 */
       2  /* { dg-do compile } */
       3  /* { dg-options "-O2" } */
       4  
       5  _Complex int
       6  foo (_Complex int a)
       7  {
       8    return (-1 + -1i) - a;
       9  }
      10  
      11  _Complex int
      12  bar (_Complex int a)
      13  {
      14    return -a - (1 + 1i);
      15  }
      16  
      17  _Complex int
      18  baz (_Complex int a)
      19  {
      20    _Complex int b = -1 + -1i;
      21    return b - a;
      22  }
      23  
      24  _Complex int
      25  qux (_Complex int a)
      26  {
      27    _Complex int b = 1 + 1i;
      28    return -a - b;
      29  }