]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/g++.old-deja/g++.martin/pmf2.C
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / g++.old-deja / g++.martin / pmf2.C
diff --git a/gcc/testsuite/g++.old-deja/g++.martin/pmf2.C b/gcc/testsuite/g++.old-deja/g++.martin/pmf2.C
deleted file mode 100644 (file)
index 481fe2c..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-// Special g++ Options: -Wno-pmf-conversions
-// Test conversion of pointers to virtual member functions to
-// pointers to non-member functions.
-
-struct A{
-  int i;
-  A::A():i(1){}
-  virtual void foo();
-}a;
-
-void A::foo()
-{
-  i = 0;
-}
-
-int main()
-{
-  void (*f)(A*) = (void(*)(A*))(&A::foo);
-  f(&a);
-  return a.i;
-}