OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
PR c++/34774
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.dg
/
inherit
/
typeinfo1.C
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