preprocessor: Create the parser before handling command-line includes [PR115312]
[official-gcc.git] / gcc / testsuite / g++.dg / inherit / access2.C
blobdc5f7d73caad0ea32969f235e1a83de192c424c3
1 // Test that a base doesn't get special rights to convert to itself.
3 struct A {
4   void f ();
5 };
7 struct B: private A { };
9 B b;
11 void A::f ()
13   A* ap = &b;                   // { dg-error "base|inherit" }