aboutsummaryrefslogtreecommitdiffstats
path: root/test/C++Frontend/2003-11-27-MultipleInheritanceThunk.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/C++Frontend/2003-11-27-MultipleInheritanceThunk.cpp')
-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 0000000..60061d2
--- /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;