You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
338 B
23 lines
338 B
// RUN: %clang_cc1 -emit-llvm %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;
|
|
}
|