OSDN Git Service

* class.c (resolve_address_of_overloaded_function): Don't
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.other / conv4.C
1 // { dg-do run  }
2 // Testcase for proper hiding of base conversion ops.
3
4 struct A
5 {
6   operator const char *();
7 };
8
9 struct B : public A
10 {
11   operator const char *() { return 0; }
12 };
13
14 int main( void )
15 {
16   B b;
17   const char *p = b;
18 }