Clean up some minor white space issues in trans-decl.c and trans-expr.c
[official-gcc.git] / gcc / testsuite / g++.dg / parse / access6.C
blobcae5deec8f80d208dde4478bb8c1501b72630b83
1 // { dg-do compile }
3 // Origin: David Baron <dbaron@fas.harvard.edu>
5 // PR c++/3765: Changing access from public to private by member
6 // using declaration.
8 class A
10   public:
11     int foo() { return 1; }     // { dg-message "declared" }
14 class B : public A
16   private:
17     using A::foo;
20 int main()
22   B b;
23   return b.foo();               // { dg-error "this context" }