OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [struct/] [wo_prof_escape_return.c] - Rev 298

Go to most recent revision | 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 "*" } } */
 

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.