summaryrefslogtreecommitdiffstats
path: root/llvm/test/tools/llvm-cov/showTemplateInstantiations.cpp
diff options
context:
space:
mode:
authorVedant Kumar <vsk@apple.com>2017-08-02 23:35:24 +0000
committerVedant Kumar <vsk@apple.com>2017-08-02 23:35:24 +0000
commit79554e450e184160084c9abe90fe865735890477 (patch)
tree6d697a096d4eb4e1aa629866f72ee8eab5b2ba08 /llvm/test/tools/llvm-cov/showTemplateInstantiations.cpp
parent9dcd3e78aebab92899563684065cd3cdaac5395a (diff)
downloadbcm5719-llvm-79554e450e184160084c9abe90fe865735890477.tar.gz
bcm5719-llvm-79554e450e184160084c9abe90fe865735890477.zip
[llvm-cov] Respect the value of the -show-instantiations option
Make `-show-instantiations=false` actually skip displaying instantiation sub-views, instead of simply ignoring the option. llvm-svn: 309903
Diffstat (limited to 'llvm/test/tools/llvm-cov/showTemplateInstantiations.cpp')
-rw-r--r--llvm/test/tools/llvm-cov/showTemplateInstantiations.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-cov/showTemplateInstantiations.cpp b/llvm/test/tools/llvm-cov/showTemplateInstantiations.cpp
index e2fc3709bc7..326eb99f10b 100644
--- a/llvm/test/tools/llvm-cov/showTemplateInstantiations.cpp
+++ b/llvm/test/tools/llvm-cov/showTemplateInstantiations.cpp
@@ -87,3 +87,7 @@ int main() { // ALL: [[@LINE]]| 1|int main() {
// RUN: FileCheck -check-prefix=HTML-JUMP -input-file=%t.html.dir/coverage/tmp/showTemplateInstantiations.cpp.html %s
// HTML-JUMP: <pre>Source (<a href='#L{{[0-9]+}}'>jump to first uncovered line</a>)</pre>
// HTML-JUMP-NOT: <pre>Source (<a href='#L{{[0-9]+}}'>jump to first uncovered line</a>)</pre>
+
+// RUN: llvm-cov show %S/Inputs/templateInstantiations.covmapping -instr-profile %S/Inputs/templateInstantiations.profdata -show-instantiations=false -filename-equivalence %s | FileCheck -check-prefix=NO_INSTS %s
+// NO_INSTS-NOT: {{^ *}}| _Z4funcIbEiT_:
+// NO_INSTS-NOT: {{^ *}}| _Z4funcIiEiT_:
OpenPOWER on IntegriCloud