annotate clang/test/CodeGenCXX/2005-02-19-UnnamedVirtualThunkArgument.cpp @ 150:1d019706d866

LLVM10
author anatofuz
date Thu, 13 Feb 2020 15:10:13 +0900
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 // RUN: %clang_cc1 -emit-llvm %s -o /dev/null
anatofuz
parents:
diff changeset
2
anatofuz
parents:
diff changeset
3 struct Foo {
anatofuz
parents:
diff changeset
4 Foo();
anatofuz
parents:
diff changeset
5 virtual ~Foo();
anatofuz
parents:
diff changeset
6 };
anatofuz
parents:
diff changeset
7
anatofuz
parents:
diff changeset
8 struct Bar {
anatofuz
parents:
diff changeset
9 Bar();
anatofuz
parents:
diff changeset
10 virtual ~Bar();
anatofuz
parents:
diff changeset
11 virtual bool test(bool) const;
anatofuz
parents:
diff changeset
12 };
anatofuz
parents:
diff changeset
13
anatofuz
parents:
diff changeset
14 struct Baz : public Foo, public Bar {
anatofuz
parents:
diff changeset
15 Baz();
anatofuz
parents:
diff changeset
16 virtual ~Baz();
anatofuz
parents:
diff changeset
17 virtual bool test(bool) const;
anatofuz
parents:
diff changeset
18 };
anatofuz
parents:
diff changeset
19
anatofuz
parents:
diff changeset
20 bool Baz::test(bool) const {
anatofuz
parents:
diff changeset
21 return true;
anatofuz
parents:
diff changeset
22 }