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
PR c++/37276
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
compat
/
struct-complex-2_x.c
blob
2fb9826eb0f6a4035bf0b66b71bdad486402c0ce
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