]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/g++.old-deja/g++.mike/net26.C
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / g++.old-deja / g++.mike / net26.C
diff --git a/gcc/testsuite/g++.old-deja/g++.mike/net26.C b/gcc/testsuite/g++.old-deja/g++.mike/net26.C
deleted file mode 100644 (file)
index ed43df8..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-// A test case found by InterViews testing...
-
-extern "C" int printf(const char *, ...);
-
-class A {
-public:
-       int foo() { printf("ok nv\n"); return 0; }
-       virtual int vfoo() { printf("ok v\n"); return 0; }
-};
-
-struct S {
-       int (A::*pfn1)();
-       int (A::*pfn2)();
-       int (A::*pfn3)();
-};
-
-// This failed before.
-S s = { &A::foo, &A::vfoo, &A::foo };
-
-A a;
-
-int main() {
-  (a.*s.pfn1)();
-  (a.*s.pfn2)();
-  printf("PASS\n");
-  return 0;
-}