1 #include "Inputs/zeroFunctionFile.h" 2 3 int foo(int x) { 4 return NOFUNCTIONS(x); 5 } 6 int main() { 7 return foo(2); 8 } 9 10 // RUN: llvm-profdata merge %S/Inputs/zeroFunctionFile.proftext -o %t.profdata 11 12 // RUN: llvm-cov report %S/Inputs/zeroFunctionFile.covmapping -instr-profile %t.profdata 2>&1 | FileCheck --check-prefix=REPORT --strict-whitespace %s 13 // REPORT: 0 0 - 0 0 - 0 0 - 0 0 - 14 // REPORT-NO: 0% 15 16 // RUN: llvm-cov show %S/Inputs/zeroFunctionFile.covmapping -format html -instr-profile %t.profdata -o %t.dir 17 // RUN: FileCheck %s -input-file=%t.dir/index.html -check-prefix=HTML 18 // HTML: <td class='column-entry-green'><pre>- (0/0) 19 // HTML-NO: 0.00% (0/0) 20