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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [abi/] [mangle2.C] - Blame information for rev 825

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 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.