mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-24 19:21:12 +08:00
new
From-SVN: r23434
This commit is contained in:
parent
72c4a2a6fb
commit
384278ddcd
17
gcc/testsuite/g++.old-deja/g++.other/conv4.C
Normal file
17
gcc/testsuite/g++.old-deja/g++.other/conv4.C
Normal file
@ -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;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user