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 we handle mangling of statics in inlines properly.
|
// Test that we handle mangling of statics in inlines properly.
|
// { dg-options -fno-weak }
|
// { dg-options -fno-weak }
|
// { dg-do run }
|
// { dg-do run }
|
|
|
inline int f ()
|
inline int f ()
|
{
|
{
|
static int nested;
|
static int nested;
|
nested = 24;
|
nested = 24;
|
{
|
{
|
static int nested;
|
static int nested;
|
nested = 42;
|
nested = 42;
|
}
|
}
|
return (nested != 24);
|
return (nested != 24);
|
}
|
}
|
|
|
int main()
|
int main()
|
{
|
{
|
return f ();
|
return f ();
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.