]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/g++.old-deja/g++.ext/bound1.C
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / g++.old-deja / g++.ext / bound1.C
diff --git a/gcc/testsuite/g++.old-deja/g++.ext/bound1.C b/gcc/testsuite/g++.old-deja/g++.ext/bound1.C
deleted file mode 100644 (file)
index fb7bd10..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-// Testcase for cast of bound pointer to member function.
-// Special g++ Options: -Wno-pmf-conversions
-// Build don't link:
-
-struct A {
-  int f ();
-};
-
-typedef int (*fptr)(A *);
-typedef void* vptr;
-typedef int (A::*pmf)();
-
-void foo (A* ap, pmf fp, int A::* ip)
-{
-  fptr p;
-  vptr q;
-  A a;
-
-  p = (fptr)(ap->*fp);
-  p = (fptr)(ap->*fp);
-  p = (fptr)(ap->*(&A::f));
-  p = (fptr)(a.*fp);
-  p = (fptr)(a.*(&A::f));
-
-  q = (vptr)(ap->*fp);
-  q = (vptr)(ap->*(&A::f));
-  q = (vptr)(a.*fp);
-  q = (vptr)(a.*(&A::f));
-}