Merge from mainline (167278:168000).
[official-gcc/graphite-test-results.git] / gcc / testsuite / g++.dg / overload / pmf2.C
blobe95e1f83a61f15e9b6dd6d7fac9f0f4fdd878951
1 // PR c++/561
3 class A { };
5 struct B : public A
7   void foo ();
8   void foo (int);
9   template <class T>
10   void bar (T);
11   template <class T>
12   void bar (T, T);
15 int main ()
17   void (A::*f1)() = (void (A::*)()) &B::foo;
18   void (A::*f2)(int) = (void (A::*)(int)) &B::bar;
19   void (A::*f3)(int) = (void (A::*)(int)) &B::bar<int>;