]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/g++.old-deja/g++.other/lookup4.C
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / g++.old-deja / g++.other / lookup4.C
diff --git a/gcc/testsuite/g++.old-deja/g++.other/lookup4.C b/gcc/testsuite/g++.old-deja/g++.other/lookup4.C
deleted file mode 100644 (file)
index 59b7a75..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-// Test for proper handling of references to overloaded member functions.
-
-struct A {
-  static void f (int) { }
-  void f ();
-};
-
-void (*p)(int) = &A::f;
-
-void A::f ()
-{
-  p = f;
-}
-
-int main()
-{
-  A a;
-  p = &a.f;
-  (a.f)();
-  (a.f)(42);
-}