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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [abi/] [mangle2.C] - Blame information for rev 693

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// Test that we handle mangling of statics in inlines properly.
2
// { dg-options -fno-weak }
3
// { dg-do run }
4
 
5
inline int f ()
6
{
7
  static int nested;
8
  nested = 24;
9
  {
10
    static int nested;
11
    nested = 42;
12
  }
13
  return (nested != 24);
14
}
15
 
16
int main()
17
{
18
  return f ();
19
}

powered by: WebSVN 2.1.0

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