]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/g++.old-deja/g++.pt/ptrmem4.C
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / ptrmem4.C
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/ptrmem4.C b/gcc/testsuite/g++.old-deja/g++.pt/ptrmem4.C
deleted file mode 100644 (file)
index 139be92..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-// Build don't run:
-
-template<class T,class T1>
-int connect_to_method(T* receiver,
-                      int (T1::*method)()) 
-{ 
-  return (receiver->*method)();
-}
-
-class Gtk_Container
-{
-public:
-  int remove_callback() { return 1; }
-  void remove_callback(int);
-  int f();
-};
-
-int Gtk_Container::f() 
-{
-  return connect_to_method(this, &Gtk_Container::remove_callback);
-}
-
-int main()
-{
-  Gtk_Container gc;
-  if (gc.f () != 1)
-    return 1;
-}