aboutsummaryrefslogtreecommitdiffstats
path: root/test/tools/llvm-cov/report.cpp
blob: 297322a775d7266d024ac94cf04ef7e790d8590c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// RUN: llvm-cov report %S/Inputs/report.covmapping -instr-profile %S/Inputs/report.profdata -no-colors 2>&1 | FileCheck %s

// CHECK: Filename                    Regions    Miss   Cover Functions  Executed
// CHECK: TOTAL                             5       2  60.00%         4    75.00%

void foo(bool cond) {
  if (cond) {
  }
}

void bar() {
}

void func() {
}

int main() {
  foo(false);
  bar();
  return 0;
}

// llvm-cov doesn't work on big endian yet
// XFAIL: powerpc64-, s390x, mips-, mips64-, sparc