aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr104675-2.c
blob: 037d0c4f10dd5e2011aeb3c4cb1c456eb0156fd6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* PR tree-optimization/104675 */
/* { dg-do compile } */
/* { dg-options "-O2" } */

void baz (int i);

void
bar (_Complex int c, short s)
{
  c -= s;
  baz (__real__ c + __imag__ c);
}

void
foo (void)
{
  bar (-1 - 1i, 0);
}