repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Dead
[official-gcc.git]
/
gomp-20050608-branch
/
gcc
/
testsuite
/
g++.old-deja
/
g++.other
/
conv4.C
blob
c195e41d6248e6b0b39b3a406e0e99d50b188baf
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
}