summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/tools/llvm-cov/report.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-cov/report.cpp b/llvm/test/tools/llvm-cov/report.cpp
index 3322e1a2c06..45d582aae34 100644
--- a/llvm/test/tools/llvm-cov/report.cpp
+++ b/llvm/test/tools/llvm-cov/report.cpp
@@ -33,3 +33,10 @@ int main() {
bar();
return 0;
}
+
+// Test that listing multiple functions in a function view works.
+// RUN: llvm-cov show -o %t.dir %S/Inputs/report.covmapping -instr-profile=%S/Inputs/report.profdata -filename-equivalence -name-regex=".*" %s
+// RUN: FileCheck -check-prefix=FUNCTIONS -input-file %t.dir/functions.txt %s
+// FUNCTIONS: _Z3foob
+// FUNCTIONS: _Z3barv
+// FUNCTIONS: _Z4func
OpenPOWER on IntegriCloud