2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.dg / abi / mangle2.C
blobe8b5f409d7c7937d70a5a0f4b9a97eb686d2904a
1 // Test that we handle mangling of statics in inlines properly.
2 // { dg-options -fno-weak }
3 // { dg-do run }
5 inline int f ()
7   static int nested;
8   nested = 24;
9   {
10     static int nested;
11     nested = 42;
12   }
13   return (nested != 24);
16 int main()
18   return f ();