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/] [990531-1.c] - Rev 308
Go to most recent revision | Compare with Previous | Blame | View Log
unsigned long bad(int reg, unsigned long inWord) { union { unsigned long word; unsigned char byte[4]; } data; data.word = inWord; data.byte[reg] = 0; return data.word; } main() { /* XXX This test could be generalized. */ if (sizeof (long) != 4) exit (0); if (bad (0, 0xdeadbeef) == 0xdeadbeef) abort (); exit (0); }
Go to most recent revision | Compare with Previous | Blame | View Log