Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / g++.old-deja / g++.other / mangle3.C
blob3579ed86f81274c13f23cb8d6b82e1e9f0c07e2d
1 // { dg-do run  }
2 struct foo {
3   static int bar ()
4   {
5     int i;
6     static int baz = 1;
7     {
8       static int baz = 2;
9       i = baz++;
10     }
11     {
12       struct baz {
13         static int m ()
14         {
15           static int n;
16           return n += 10;
17         }
18       };
19       baz a;
20       i += a.m ();
21     }
22     {
23       static int baz = 3;
24       i += baz;
25       baz += 30;
26     }
27     i += baz;
28     baz += 60;
29     return i;
30   }
33 int main ()
35   foo x;
37   if (x.bar () != 16)
38     return 1;
39   if (x.bar() != 117)
40     return 1;
41   return 0;