]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/g++.dg/overload/pmf1.C
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / g++.dg / overload / pmf1.C
diff --git a/gcc/testsuite/g++.dg/overload/pmf1.C b/gcc/testsuite/g++.dg/overload/pmf1.C
deleted file mode 100644 (file)
index 772cb53..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-// { dg-do compile }
-
-// Copyright (C) 2002 Free Software Foundation, Inc.
-// Contributed by Nathan Sidwell 04 Mar 2002 <nathan@codesourcery.com>
-//               Jason Merrill <jason@redhat.com>
-
-struct A { int i; };
-struct B: private A {};
-struct C {
-  C (int A::*);
-};
-
-int A::*aip = &A::i;
-
-void f (int B::*) {}  // should choose this, even though it's ill-formed
-void f (C) {}         // even though this would be well-formed
-
-int main ()
-{
-  f (aip);  // { dg-error "`A' is an inaccessible base of `B'" "" }
-}