]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/g++.old-deja/g++.martin/pmf1.C
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / g++.old-deja / g++.martin / pmf1.C
diff --git a/gcc/testsuite/g++.old-deja/g++.martin/pmf1.C b/gcc/testsuite/g++.old-deja/g++.martin/pmf1.C
deleted file mode 100644 (file)
index 5c6bb54..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-// Based on a test case by Andrew Bell <andrew.bell@bigfoot.com>
-// Check for pointer-to-virtual-function calls on 
-// bases without virtual functions.
-
-struct B{};
-
-struct D:B{
-  virtual void foo();
-};
-
-void D::foo(){}
-
-int main()
-{
-  B *b = new D;
-  void (B::*f)() = static_cast<void (B::*)()>(&D::foo);
-  (b->*f)();
-}