Wattributes-10.c: Add -fno-common option on hppa*-*-hpux*.
[official-gcc.git] / gcc / testsuite / gcc.dg / compat / struct-complex-2_x.c
blob2fb9826eb0f6a4035bf0b66b71bdad486402c0ce
1 /* { dg-options "-O -Wno-psabi" } */
4 #ifdef __x86_64__
5 #include "struct-complex-2.h"
7 struct st st1;
8 struct stc st2;
10 extern void foo ();
11 extern void bar ();
13 int
14 struct_complex_2_x ()
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;
28 #else
29 int dummy_x;
30 #endif