mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-12 06:06:32 +00:00
9bcc2d450f
Files which don't contain any functions are likely useless; don't include them in the main table. Put the links at the bottom of the page, in case someone wants to figure out coverage for code inside a macro. Not sure if this is the best solution, but it seems like an improvement. Differential Revision: https://reviews.llvm.org/D36298 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@310518 91177308-0d34-0410-b5e6-96231b3b80d8
21 lines
700 B
C
21 lines
700 B
C
#include "Inputs/zeroFunctionFile.h"
|
|
|
|
int foo(int x) {
|
|
return NOFUNCTIONS(x);
|
|
}
|
|
int main() {
|
|
return foo(2);
|
|
}
|
|
|
|
// RUN: llvm-profdata merge %S/Inputs/zeroFunctionFile.proftext -o %t.profdata
|
|
|
|
// RUN: llvm-cov report %S/Inputs/zeroFunctionFile.covmapping -instr-profile %t.profdata 2>&1 | FileCheck --check-prefix=REPORT --strict-whitespace %s
|
|
// REPORT: Files which contain no functions
|
|
// REPORT: zeroFunctionFile.h
|
|
|
|
// RUN: llvm-cov show -j 1 %S/Inputs/zeroFunctionFile.covmapping -format html -instr-profile %t.profdata -o %t.dir
|
|
// RUN: FileCheck %s -input-file=%t.dir/index.html -check-prefix=HTML
|
|
// HTML-NO: 0.00% (0/0)
|
|
// HTML: Files which contain no functions
|
|
// HTML: zeroFunctionFile.h
|