]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/g++.old-deja/g++.ext/addrfunc4.C
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / g++.old-deja / g++.ext / addrfunc4.C
diff --git a/gcc/testsuite/g++.old-deja/g++.ext/addrfunc4.C b/gcc/testsuite/g++.old-deja/g++.ext/addrfunc4.C
deleted file mode 100644 (file)
index d8e9987..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-// Test that an object-dependent reference to a member function can be
-// used to produce a pointer to member function, as in VC++.
-// Contributed by Jason Merrill <jason@cygnus.com>
-// Special g++ Options: -fms-extensions
-
-struct A
-{
-  int  f(int a) { return 0; }
-  void f(int a, int b) { }
-};
-
-typedef int  (A::* pmf1)(int);
-typedef void (A::* pmf2)(int, int);
-
-int main()
-{
-  A a;
-  pmf1 fn1;
-  pmf2 fn2;
-
-  fn1 = a.f; 
-  fn1 = (pmf1)a.f;
-  fn2 = (pmf2)a.f;
-};