1#include "instrprof-icall-promo.h"
2extern int ref(A *);
3
4int A::bar() { return 2; }
5
6extern A *ap;
7int test() {
8 for (int i = 0; i < 10000; i++) ap->foo();
9 return ref(ap);
10}
11
12int main() {
13 test();
14 return 0;
15}
16

source code of compiler-rt/test/profile/Inputs/instrprof-icall-promo_2.cpp