Clean up some minor white space issues in trans-decl.c and trans-expr.c
[official-gcc.git] / gcc / testsuite / g++.dg / parse / access5.C
blob5772c0d931135427139bb0da4a53318256c5bc19
1 // { dg-do compile }
3 // Origin: Giovanni Bajo <giovannibajo@libero.it>
5 // PR c++/11174: Access checking on pointer to member data.
7 struct A 
9 protected:
10   int a;                        // { dg-message "protected" }
13 struct B : A 
15   void foo() {
16     (void)&A::a;                // { dg-error "this context" }
17   }