2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / gcc.c-torture / unsorted / bad.c
blob8cc84973b7259cfd1445d02729908f1fcbf7123d
1 typedef union longlong
3 struct {unsigned short h0, h1, h2, h3;} h;
4 struct {signed long low, high;} si;
5 struct {unsigned long low, high;} ui;
6 signed long long sll;
7 unsigned long long ull;
8 } long_long;
11 long long
12 __negdi2 (u)
13 long long u;
15 long_long uu;
17 uu.sll = u;
19 uu.si.low = -uu.si.low;
20 if (uu.si.low == 0)
21 uu.si.high = -uu.si.high;
22 else
23 uu.si.high = ~uu.si.high;
25 return uu.sll;