URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [gcc.dg/] [struct/] [wo_prof_escape_return.c] - Rev 338
Compare with Previous | Blame | View Log
/* { dg-options "-O3 -fno-inline -fipa-type-escape -fdump-ipa-all -fipa-struct-reorg -fwhole-program -combine" } */ /* { dg-do compile } */ /* { dg-do run } */ #include <stdlib.h> struct A { int d; }; struct A a; struct A foo () { a.d = 5; return a; } int main () { a.d = 0; foo (); if (a.d != 5) abort (); return 0; } /*--------------------------------------------------------------------------*/ /* { dg-final { scan-ipa-dump "is return type of function...Excluded" "ipa_struct_reorg" } } */ /* { dg-final { cleanup-ipa-dump "*" } } */