llvm-project/llvm/test/C++Frontend/2005-02-19-UnnamedVirtualTh...

23 lines
328 B
C++
Raw Normal View History

2005-02-20 01:07:48 +08:00
// RUN: %llvmgxx -S %s -o /dev/null
struct Foo {
Foo();
virtual ~Foo();
};
struct Bar {
Bar();
virtual ~Bar();
virtual bool test(bool) const;
};
struct Baz : public Foo, public Bar {
Baz();
virtual ~Baz();
virtual bool test(bool) const;
};
bool Baz::test(bool) const {
return true;
}