diff --git a/gcc/testsuite/g++.old-deja/g++.other/conv4.C b/gcc/testsuite/g++.old-deja/g++.other/conv4.C new file mode 100644 index 000000000000..0ed0ee865631 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.other/conv4.C @@ -0,0 +1,17 @@ +// Testcase for proper hiding of base conversion ops. + +struct A +{ + operator const char *(); +}; + +struct B : public A +{ + operator const char *() { return 0; } +}; + +int main( void ) +{ + B b; + const char *p = b; +}