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.dg/] [tree-ssa/] [pr38895.c] - Rev 298
Compare with Previous | Blame | View Log
/* { dg-do compile } */ /* { dg-options "-O -fstrict-aliasing -fdump-tree-optimized" } */ struct A { int i; int j; }; struct B { struct A a1; struct A a2; }; struct C { struct A a1; struct B b; }; int foo(struct C *c, struct B *b) { c->a1.i = 1; b->a1.i = 0; return c->a1.i; } /* { dg-final { scan-tree-dump "return 1;" "optimized" } } */ /* { dg-final { cleanup-tree-dump "optimized" } } */