URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [990531-1.c] - Rev 816
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); }