]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/g++.old-deja/g++.other/ptrmem9.C
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / g++.old-deja / g++.other / ptrmem9.C
diff --git a/gcc/testsuite/g++.old-deja/g++.other/ptrmem9.C b/gcc/testsuite/g++.old-deja/g++.other/ptrmem9.C
deleted file mode 100644 (file)
index f50ba22..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-// Test that const-correctness is observed when using pointers-to-members.
-
-struct A {
-  int f () { return 1; }
-  int f () const { return 0; }
-};
-
-struct B {
-  A a;
-  B() { }
-};
-
-int main ()
-{
-  A B::*bm = &B::a;
-  const B b;
-  return (b.*bm).f ();
-}