This commit was manufactured by cvs2svn to create branch
'gcc-3_2-branch'. From-SVN: r59696
This commit is contained in:
parent
97a8c5e422
commit
805ee4b50e
|
@ -0,0 +1,8 @@
|
|||
namespace NS {
|
||||
class X {};
|
||||
typedef X Y;
|
||||
}
|
||||
|
||||
struct Base : virtual public NS::Y {
|
||||
Base() : NS::Y() {}
|
||||
};
|
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue