repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
* 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
blob
9634c7943f32fb8d68aa2c9e4c33afe49fc50d46
1
__complex__
double
2
f
(
__complex__
double
x
,
__complex__
double
y
)
3
{
4
x
+=
y
;
5
return
x
;
6
}
7
8
__complex__
double
ag
=
1.0
+
1.0
i
;
9
__complex__
double
bg
= -
2.0
+
2.0
i
;
10
11
main
()
12
{
13
__complex__
double
a
,
b
,
c
;
14
15
a
=
ag
;
16
b
= -
2.0
+
2.0
i
;
17
c
=
f
(
a
,
b
);
18
19
if
(
a
!=
1.0
+
1.0
i
)
20
abort
();
21
if
(
b
!= -
2.0
+
2.0
i
)
22
abort
();
23
if
(
c
!= -
1.0
+
3.0
i
)
24
abort
();
25
26
exit
(
0
);
27
}