URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 298 |
Rev 384 |
/* { dg-do compile } */
|
/* { dg-do compile } */
|
/* { dg-require-effective-target fpic } */
|
/* { dg-require-effective-target fpic } */
|
/* { dg-skip-if "" { *-*-darwin* } { "*" } { "" } } */
|
/* { dg-skip-if "" { *-*-darwin* } { "*" } { "" } } */
|
/* { dg-options "-O2 -fno-common -fpic -fdump-tree-optimized" } */
|
/* { dg-options "-O2 -fno-common -fpic -fdump-tree-optimized" } */
|
|
|
const int conststaticvariable;
|
const int conststaticvariable;
|
|
|
int f(void)
|
int f(void)
|
{
|
{
|
return conststaticvariable;
|
return conststaticvariable;
|
}
|
}
|
|
|
/* There should be a reference to conststaticvariable since it may
|
/* There should be a reference to conststaticvariable since it may
|
may be overriden at run time. */
|
may be overriden at run time. */
|
/* { dg-final { scan-tree-dump-times "conststaticvariable" 1 "optimized"} } */
|
/* { dg-final { scan-tree-dump-times "conststaticvariable" 1 "optimized"} } */
|
/* { dg-final { cleanup-tree-dump "optimized" } } */
|
/* { dg-final { cleanup-tree-dump "optimized" } } */
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.