OSDN Git Service

* toplev.c (wrapup_global_declarations): Clarify variable handling.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / abi / mangle2.C
1 // 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 }