Debian Codegraph @

gcc/testsuite/gcc.dg/compat/struct-complex-1_x.c

raw
1 /* { dg-options "-std=gnu17 -O -Wno-psabi" } */
2
3
4 #ifdef __x86_64__
5 #include "struct-complex-1.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_1_x ()
15 {
16 st1.s1 = 1;
17 st1.s2 = 2;
18 __real__ st1.x = 2;
19 __imag__ st1.x = 4;
20 st2.s1 = 1;
21 st2.s2 = 2;
22 st2.x.r = 2;
23 st2.x.i = 4;
24 foo (st1);
25 foo (st2);
26 bar (st1);
27 bar (st2);
28 return 0;
29 }
30 #else
31 int dummy_x;
32 #endif
33