* gcc.target/i386/mpx/hard-reg-1-nov.c (mpx_test): Use "esp"
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / complex-2.c
blob9634c7943f32fb8d68aa2c9e4c33afe49fc50d46
1 __complex__ double
2 f (__complex__ double x, __complex__ double y)
4 x += y;
5 return x;
8 __complex__ double ag = 1.0 + 1.0i;
9 __complex__ double bg = -2.0 + 2.0i;
11 main ()
13 __complex__ double a, b, c;
15 a = ag;
16 b = -2.0 + 2.0i;
17 c = f (a, b);
19 if (a != 1.0 + 1.0i)
20 abort ();
21 if (b != -2.0 + 2.0i)
22 abort ();
23 if (c != -1.0 + 3.0i)
24 abort ();
26 exit (0);