2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.dg / inherit / typeinfo1.C
blob794776ecbe84bcf77524ef0b664880ca2fdc8321
1 typedef struct {
2    virtual const char *blah() {
3      return "Heya::blah";
4    }
5 } Heya;
7 struct Grok : public Heya {
8    virtual const char *blah() {
9      return "Grok::blah";
10    }
13 int main() {
14    Grok *g = new Grok();
15    delete g;
16    return 0;