URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [tree-ssa/] [pr38895.c] - Rev 689
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" } } */