Fix warning with -Wsign-compare -Wsystem-headers
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / pr51583.c
blob2c4ec4723c47e2a6873fae12e440fcab2aefb01a
1 /* { dg-do compile } */
2 /* { dg-options "-O1" } */
4 typedef __complex__ double Value;
6 union U
8 Value v;
9 char c[sizeof(Value)];
12 struct S
14 union U u;
15 int i,j;
18 Value gv;
19 int gi, gj;
21 Value foo (void)
23 struct S s,t;
25 t.i = gi;
26 t.j = gj;
27 t.u.v = gv;
28 t.u.c[0] = 0;
30 s = t;
31 __imag__ s.u.v += s.i;
33 return s.u.v;