URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [920908-2.c] - Rev 301
Go to most recent revision | Compare with Previous | Blame | View Log
/* The bit-field below would have a problem if __INT_MAX__ is too small. */ #if __INT_MAX__ < 2147483647 int main (void) { exit (0); } #else /* CONF:m68k-sun-sunos4.1.1 OPTIONS:-O */ struct T { unsigned i:8; unsigned c:24; }; f(struct T t) { struct T s[1]; s[0]=t; return(char)s->c; } main() { struct T t; t.i=0xff; t.c=0xffff11; if(f(t)!=0x11)abort(); exit(0); } #endif
Go to most recent revision | Compare with Previous | Blame | View Log