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/] [pr41317.c] - Rev 297
Compare with Previous | Blame | View Log
extern void abort (void); struct A { int i; }; struct B { struct A a; int j; }; static void foo (struct B *p) { ((struct A *)p)->i = 1; } int main() { struct A a; a.i = 0; foo ((struct B *)&a); if (a.i != 1) abort (); return 0; }