Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
inherit
/
typeinfo1.C
blob: 794776ecbe84bcf77524ef0b664880ca2fdc8321 [
file
] [
log
] [
blame
]
typedef
struct
{
virtual
const
char
*
blah
()
{
return
"Heya::blah"
;
}
}
Heya
;
struct
Grok
:
public
Heya
{
virtual
const
char
*
blah
()
{
return
"Grok::blah"
;
}
};
int
main
()
{
Grok
*
g
=
new
Grok
();
delete
g
;
return
0
;
}