* c-common.c (get_priority): Add check for
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / ptrmem4.C
blob70ac25eb2777b66162fe92b4e232e859bef6084c
1 // { dg-do link  }
3 template<class T,class T1>
4 int connect_to_method(T* receiver,
5                       int (T1::*method)()) 
6
7   return (receiver->*method)();
10 class Gtk_Container
12 public:
13   int remove_callback() { return 1; }
14   void remove_callback(int);
15   int f();
18 int Gtk_Container::f() 
20   return connect_to_method(this, &Gtk_Container::remove_callback);
23 int main()
25   Gtk_Container gc;
26   if (gc.f () != 1)
27     return 1;