Files
clang-p2996/compiler-rt/test/profile/Inputs/instrprof-icall-promo_2.cpp
Nico Weber 8b8f66d993 compiler-rt: Rename remaining cc files in test/profile to cpp
See r367803 and similar other changes.

llvm-svn: 367858
2019-08-05 13:42:31 +00:00

16 lines
215 B
C++

#include "instrprof-icall-promo.h"
extern int ref(A *);
int A::bar() { return 2; }
extern A *ap;
int test() {
for (int i = 0; i < 10000; i++) ap->foo();
return ref(ap);
}
int main() {
test();
return 0;
}