2014-01-15 03:35:09 +08:00
|
|
|
// RUN: %clang_cc1 -triple %itanium_abi_triple -emit-llvm %s -o -
|
|
|
|
// RUN: %clang_cc1 -triple %ms_abi_triple -fno-rtti -emit-llvm %s -o -
|
2011-08-20 08:17:18 +08:00
|
|
|
|
|
|
|
|
|
|
|
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;
|