Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / g++.old-deja / g++.martin / eval1.C
blobe3eb3d6bef640ad8295b42f6c5fa2390528cf940
1 // { dg-do run  }
2 // Postfix expression must be evaluated even if accessing a static member.
4 struct S
6         static int i;
7         S* foo();
8 };
10 S* S::foo(){
11   i = 0;
12   return this;
15 int S::i = 1;
16 int main(void)
18         S * s = new S;
19         int k=(s->foo())->i;
20         return k;