f4a2713ac8
Change-Id: Ia40e9ffdf29b5dab2f122f673ff6802a58bc690f
28 lines
382 B
C++
28 lines
382 B
C++
// RUN: %clang_cc1 -emit-llvm %s -o -
|
|
|
|
|
|
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;
|