1 /* The bit-field below would have a problem if __INT_MAX__ is too 2 small. */ 3 #if __INT_MAX__ < 2147483647 4 int main(void)5main (void) 6 { 7 exit (0); 8 } 9 #else 10 /* 11 CONF:m68k-sun-sunos4.1.1 12 OPTIONS:-O 13 */ 14 struct T 15 { 16 unsigned i:8; 17 unsigned c:24; 18 }; f(struct T t)19f(struct T t) 20 { 21 struct T s[1]; 22 s[0]=t; 23 return(char)s->c; 24 } main()25main() 26 { 27 struct T t; 28 t.i=0xff; 29 t.c=0xffff11; 30 if(f(t)!=0x11)abort(); 31 exit(0); 32 } 33 #endif 34