• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #include "Inputs/zeroFunctionFile.h"
2 
foo(int x)3 int foo(int x) {
4   return NOFUNCTIONS(x);
5 }
main()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: Files which contain no functions
14 // REPORT: zeroFunctionFile.h
15 
16 // RUN: llvm-cov show -j 1 %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-NO: 0.00% (0/0)
19 // HTML: Files which contain no functions
20 // HTML: zeroFunctionFile.h
21