2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.jason / access11.C
blobdd30e26fab6e931cd65578c67b0a1ed6f8f2d434
1 // { dg-do assemble  }
2 // PRMS Id: 4900
3 // Bug: g++ doesn't apply access control uniformly to type conversion operators
5 struct A {
6 protected:
7   operator int * () const;
8 };
10 struct B : public A {
11   int * foo () { return A::operator int *(); }