URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 298 |
Rev 384 |
/* { dg-options "-O3 -fno-inline -fipa-type-escape -fdump-ipa-all -fipa-struct-reorg -fwhole-program -combine" } */
|
/* { dg-options "-O3 -fno-inline -fipa-type-escape -fdump-ipa-all -fipa-struct-reorg -fwhole-program -combine" } */
|
/* { dg-do compile } */
|
/* { dg-do compile } */
|
/* { dg-do run } */
|
/* { dg-do run } */
|
|
|
#include <stdlib.h>
|
#include <stdlib.h>
|
|
|
struct A {
|
struct A {
|
int d;
|
int d;
|
};
|
};
|
|
|
struct A a;
|
struct A a;
|
|
|
struct A foo ()
|
struct A foo ()
|
{
|
{
|
a.d = 5;
|
a.d = 5;
|
return a;
|
return a;
|
}
|
}
|
|
|
int
|
int
|
main ()
|
main ()
|
{
|
{
|
a.d = 0;
|
a.d = 0;
|
foo ();
|
foo ();
|
|
|
if (a.d != 5)
|
if (a.d != 5)
|
abort ();
|
abort ();
|
|
|
return 0;
|
return 0;
|
}
|
}
|
|
|
/*--------------------------------------------------------------------------*/
|
/*--------------------------------------------------------------------------*/
|
/* { dg-final { scan-ipa-dump "is return type of function...Excluded" "ipa_struct_reorg" } } */
|
/* { dg-final { scan-ipa-dump "is return type of function...Excluded" "ipa_struct_reorg" } } */
|
/* { dg-final { cleanup-ipa-dump "*" } } */
|
/* { dg-final { cleanup-ipa-dump "*" } } */
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.