This commit was manufactured by cvs2svn to create branch

'gcc-3_2-branch'.

From-SVN: r59696
This commit is contained in:
No Author 2002-12-01 20:40:38 +00:00
parent 97a8c5e422
commit 805ee4b50e
2 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,8 @@
namespace NS {
class X {};
typedef X Y;
}
struct Base : virtual public NS::Y {
Base() : NS::Y() {}
};

View File

@ -0,0 +1,18 @@
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;
}