Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / g++.old-deja / g++.jason / pmf8.C
blobb877a81c6342ac01747cb47e7e573fda6b9256df
1 // { dg-do run  }
2 // PRMS Id: 6905
4 class Parent {
5 public:
6   void DoSomething() { return; };
7   int i;
8 };
10 class Child : public Parent {
11 public:
14 class User {
15 public:
16   void DoAnyThing(void (Parent::*)(void)) { return; }
17   void DoAThing(void (Child::*)(void)) { return; }
18   void DoAThing(int Child::*) { return; }
22 int main()
24   User a;
26   a.DoAnyThing(&Child::DoSomething);
27   a.DoAThing(&Child::DoSomething);
28   a.DoAThing(&Parent::DoSomething);
29   a.DoAThing(&Parent::i);