From f095db12372f8eb195db9dab28688155ea8591ea Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 28 Nov 2003 01:32:03 +0000 Subject: Testcase for PR160 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10247 91177308-0d34-0410-b5e6-96231b3b80d8 --- .../2003-11-27-MultipleInheritanceThunk.cpp | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 test/C++Frontend/2003-11-27-MultipleInheritanceThunk.cpp (limited to 'test/C++Frontend/2003-11-27-MultipleInheritanceThunk.cpp') 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; -- cgit v1.1