summaryrefslogtreecommitdiff
path: root/test/profile/Inputs/comdat_rename.h
blob: d30628f13b63caf243f11567e37e37566e27975a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
struct FOO {
  FOO() : a(0), b(0) {}
  int callee();
  __attribute__((noinline)) void caller(int n) {
      int r = callee();
      if (r == 0) {
        a += n;
        b += 1;
      }
  }
  int a;
  int volatile b;
};