summaryrefslogtreecommitdiffstats
path: root/compiler-rt/test/profile/Inputs/instrprof-icall-promo_2.cpp
blob: 658ab0bf44d1260f8149191bf4d2a54ac39a2111 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#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;
}
OpenPOWER on IntegriCloud