Merge to HEAD at tree-cleanup-merge-20041024 .
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / 920908-2.c
blob31c1ae0769c77b9605e67de4b63b43750e371214
1 /* The bit-field below would have a problem if __INT_MAX__ is too
2 small. */
3 #if __INT_MAX__ < 2147483647
4 int
5 main (void)
7 exit (0);
9 #else
11 CONF:m68k-sun-sunos4.1.1
12 OPTIONS:-O
14 struct T
16 unsigned i:8;
17 unsigned c:24;
19 f(struct T t)
21 struct T s[1];
22 s[0]=t;
23 return(char)s->c;
25 main()
27 struct T t;
28 t.i=0xff;
29 t.c=0xffff11;
30 if(f(t)!=0x11)abort();
31 exit(0);
33 #endif