]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/g++.old-deja/g++.ext/addrfunc1.C
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / g++.old-deja / g++.ext / addrfunc1.C
diff --git a/gcc/testsuite/g++.old-deja/g++.ext/addrfunc1.C b/gcc/testsuite/g++.old-deja/g++.ext/addrfunc1.C
deleted file mode 100644 (file)
index e0948a5..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-// Test that taking the address of a member function name produces
-// a pointer to member function.
-// Contributed by Jason Merrill <jason@cygnus.com>
-// Special g++ Options: -fms-extensions
-// Build don't link:
-
-struct A { };
-int (A::*p)();
-
-struct B {
-  int f () { return 0; }
-  void g ();
-};
-
-void B::g ()
-{
-  p = (int (A::*)())&f;
-}