xref: /minix3/external/bsd/llvm/dist/clang/test/CodeGenCXX/2003-11-27-MultipleInheritanceThunk.cpp (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -emit-llvm %s -o -
2*f4a2713aSLionel Sambuc 
3*f4a2713aSLionel Sambuc 
4*f4a2713aSLionel Sambuc struct CallSite {
5*f4a2713aSLionel Sambuc   int X;
6*f4a2713aSLionel Sambuc 
7*f4a2713aSLionel Sambuc   CallSite(const CallSite &CS);
8*f4a2713aSLionel Sambuc };
9*f4a2713aSLionel Sambuc 
10*f4a2713aSLionel Sambuc struct AliasAnalysis {
11*f4a2713aSLionel Sambuc   int TD;
12*f4a2713aSLionel Sambuc 
13*f4a2713aSLionel Sambuc   virtual int getModRefInfo(CallSite CS);
14*f4a2713aSLionel Sambuc };
15*f4a2713aSLionel Sambuc 
16*f4a2713aSLionel Sambuc 
17*f4a2713aSLionel Sambuc struct Pass {
18*f4a2713aSLionel Sambuc   int X;
19*f4a2713aSLionel Sambuc   virtual int foo();
20*f4a2713aSLionel Sambuc };
21*f4a2713aSLionel Sambuc 
22*f4a2713aSLionel Sambuc struct AliasAnalysisCounter : public Pass, public AliasAnalysis {
23*f4a2713aSLionel Sambuc   int getModRefInfo(CallSite CS) {
24*f4a2713aSLionel Sambuc     return 0;
25*f4a2713aSLionel Sambuc   }
26*f4a2713aSLionel Sambuc };
27*f4a2713aSLionel Sambuc 
28*f4a2713aSLionel Sambuc AliasAnalysisCounter AAC;
29