AVR: avr.cc - Drop a superfluous sub-condition in avr_out_compare.
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.jason / pmf8.C
blob35b7d8c43b220e50d541550cc1396b059c5ecef9
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);