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
* fi.po: Update.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
inherit
/
typeinfo1.C
blob
794776ecbe84bcf77524ef0b664880ca2fdc8321
1
typedef struct {
2
virtual const char *blah() {
3
return "Heya::blah";
4
}
5
} Heya;
6
7
struct Grok : public Heya {
8
virtual const char *blah() {
9
return "Grok::blah";
10
}
11
};
12
13
int main() {
14
Grok *g = new Grok();
15
delete g;
16
return 0;
17
}
18