aboutsummaryrefslogtreecommitdiff
path: root/test/profile/Inputs/instrprof-comdat-1.cpp
blob: bd574ec3fb89ed1fb73800bc94ef69f9d5c63bd6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include "instrprof-comdat.h"
int g;
extern int bar(int);

int main() {

  FOO<int> Foo;

  int Res = Foo.DoIt(10);

  if (Res > 10)
    g = bar(10);
  else
    g = bar(1) + bar(2);
  return 0;
}