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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [abi/] [mangle2.C] - Diff between revs 149 and 154

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 ();
}
}
 
 

powered by: WebSVN 2.1.0

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