modernc.org/ccgo/v3@v3.16.14/lib/testdata/gcc-9.1.0/gcc/testsuite/gcc.c-torture/execute/920908-2.c (about) 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) 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 }; 19 f(struct T t) 20 { 21 struct T s[1]; 22 s[0]=t; 23 return(char)s->c; 24 } 25 main() 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