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