projects
/
gcc.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
re PR target/39678 (complex type isn't passed correctly)
[gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
compat
/
struct-complex-2_x.c
1
/* { dg-options "-O -Wno-psabi" } */
2
3
4
#ifdef __x86_64__
5
#include
"struct-complex-2.h"
6
7
struct
st st1
;
8
struct
stc st2
;
9
10
extern
void
foo
();
11
extern
void
bar
();
12
13
int
14
struct_complex_2_x
()
15
{
16
st1
.
s1
=
1
;
17
__real__ st1
.
x
=
2
;
18
__imag__ st1
.
x
=
4
;
19
st2
.
s1
=
1
;
20
st2
.
x
.
r
=
2
;
21
st2
.
x
.
i
=
4
;
22
foo
(
st1
);
23
foo
(
st2
);
24
bar
(
st1
);
25
bar
(
st2
);
26
return
0
;
27
}
28
#else
29
int
dummy_x
;
30
#endif