rs6000: Relax some FLOAT128 expander condition for FLOAT128_IEEE_P [PR105359]
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / complex-2.c
blobcd4b25f6d1f51d8ebaa5fc869bf9d2e761278eeb
1 void abort (void);
2 void exit (int);
4 __complex__ double
5 f (__complex__ double x, __complex__ double y)
7 x += y;
8 return x;
11 __complex__ double ag = 1.0 + 1.0i;
12 __complex__ double bg = -2.0 + 2.0i;
14 int
15 main (void)
17 __complex__ double a, b, c;
19 a = ag;
20 b = -2.0 + 2.0i;
21 c = f (a, b);
23 if (a != 1.0 + 1.0i)
24 abort ();
25 if (b != -2.0 + 2.0i)
26 abort ();
27 if (c != -1.0 + 3.0i)
28 abort ();
30 exit (0);