Home | History | Annotate | Download | only in CodeGenCXX
      1 // RUN: %clang_cc1 -emit-llvm %s -o -
      2 
      3 
      4 struct CallSite {
      5   int X;
      6 
      7   CallSite(const CallSite &CS);
      8 };
      9 
     10 struct AliasAnalysis {
     11   int TD;
     12 
     13   virtual int getModRefInfo(CallSite CS);
     14 };
     15 
     16 
     17 struct Pass {
     18   int X;
     19   virtual int foo();
     20 };
     21 
     22 struct AliasAnalysisCounter : public Pass, public AliasAnalysis {
     23   int getModRefInfo(CallSite CS) {
     24     return 0;
     25   }
     26 };
     27 
     28 AliasAnalysisCounter AAC;
     29