aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-11-28 01:32:03 +0000
committerChris Lattner <sabre@nondot.org>2003-11-28 01:32:03 +0000
commitf095db12372f8eb195db9dab28688155ea8591ea (patch)
tree2797e5e5e96288522d9d2e0642290e8190f4e996 /test
parent2bc9988b1a8696a5044d7e5efbb8b51e88015c6d (diff)
Testcase for PR160
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10247 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/C++Frontend/2003-11-27-MultipleInheritanceThunk.cpp26
1 files changed, 26 insertions, 0 deletions
diff --git a/test/C++Frontend/2003-11-27-MultipleInheritanceThunk.cpp b/test/C++Frontend/2003-11-27-MultipleInheritanceThunk.cpp
new file mode 100644
index 0000000000..60061d2107
--- /dev/null
+++ b/test/C++Frontend/2003-11-27-MultipleInheritanceThunk.cpp
@@ -0,0 +1,26 @@
+
+struct CallSite {
+ int X;
+
+ CallSite(const CallSite &CS);
+};
+
+struct AliasAnalysis {
+ int TD;
+
+ virtual int getModRefInfo(CallSite CS);
+};
+
+
+struct Pass {
+ int X;
+ virtual int foo();
+};
+
+struct AliasAnalysisCounter : public Pass, public AliasAnalysis {
+ int getModRefInfo(CallSite CS) {
+ return 0;
+ }
+};
+
+AliasAnalysisCounter AAC;