URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 149 |
Rev 154 |
/* Test that -fvisibility-inlines-hidden doesn't affect static variables. */
|
/* Test that -fvisibility-inlines-hidden doesn't affect static variables. */
|
/* { dg-do compile } */
|
/* { dg-do compile } */
|
/* { dg-require-visibility "" } */
|
/* { dg-require-visibility "" } */
|
/* { dg-options "-fvisibility-inlines-hidden" } */
|
/* { dg-options "-fvisibility-inlines-hidden" } */
|
/* { dg-final { scan-not-hidden "_ZZN3foo7my_funcEvE1x" } } */
|
/* { dg-final { scan-not-hidden "_ZZN3foo7my_funcEvE1x" } } */
|
|
|
struct foo
|
struct foo
|
{
|
{
|
int my_func() {
|
int my_func() {
|
static int x;
|
static int x;
|
return x++;
|
return x++;
|
}
|
}
|
};
|
};
|
|
|
int t()
|
int t()
|
{
|
{
|
foo f;
|
foo f;
|
return f.my_func();
|
return f.my_func();
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.