[llvm-commits] CVS: llvm/test/Regression/C++Frontend/2003-11-27-MultipleInheritanceThunk.cpp
Chris Lattner
lattner at cs.uiuc.edu
Thu Nov 27 19:33:06 PST 2003
Changes in directory llvm/test/Regression/C++Frontend:
2003-11-27-MultipleInheritanceThunk.cpp added (r1.1)
---
Log message:
Testcase for PR160
---
Diffs of the changes: (+26 -0)
Index: llvm/test/Regression/C++Frontend/2003-11-27-MultipleInheritanceThunk.cpp
diff -c /dev/null llvm/test/Regression/C++Frontend/2003-11-27-MultipleInheritanceThunk.cpp:1.1
*** /dev/null Thu Nov 27 19:32:13 2003
--- llvm/test/Regression/C++Frontend/2003-11-27-MultipleInheritanceThunk.cpp Thu Nov 27 19:32:03 2003
***************
*** 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;
More information about the llvm-commits
mailing list