Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / g++.old-deja / g++.jason / pmf7.C
blob7601333842a33357c0d9f4db64aa2ac803a69967
1 // { dg-do run  }
2 // PRMS Id: 6486
3 // Make sure that no confused handling of COND_EXPRs and SAVE_EXPRs messes
4 // with the number of calls to foo.
6 int c;
8 struct A {
9   void f () {}
10   virtual void g () {}
13 A& foo ()
15   static A a;
16   ++c;
17   return a;
20 int main ()
22   void (A::*p)() = &A::f;
23   (foo ().*p)();
24   p = &A::g;
25   (foo ().*p)();
27   return 2 - c;