Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / g++.dg / overload / pmf1.C
blobd20074931797df1c80cd4cbafd42d816df6d9953
1 // { dg-do compile }
3 // Copyright (C) 2002 Free Software Foundation, Inc.
4 // Contributed by Nathan Sidwell 04 Mar 2002 <nathan@codesourcery.com>
5 //                Jason Merrill <jason@redhat.com>
7 struct A { int i; };
8 struct B: private A {};
9 struct C {
10   C (int A::*);
13 int A::*aip = &A::i;
15 void f (int B::*) {}  // should choose this, even though it's ill-formed
16 void f (C) {}         // even though this would be well-formed
18 int main ()
20   f (aip);  // { dg-error "'A' is an inaccessible base of 'B'|conversion" "" }