URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [20001228-1.c] - Rev 297
Go to most recent revision | Compare with Previous | Blame | View Log
int foo1(void) { union { char a[sizeof (unsigned)]; unsigned b; } u; u.b = 0x01; return u.a[0]; } int foo2(void) { volatile union { char a[sizeof (unsigned)]; unsigned b; } u; u.b = 0x01; return u.a[0]; } int main(void) { if (foo1() != foo2()) abort (); exit (0); }
Go to most recent revision | Compare with Previous | Blame | View Log