summaryrefslogtreecommitdiffstats
path: root/llvm/test/tools/llvm-profdata
diff options
context:
space:
mode:
authorVedant Kumar <vsk@apple.com>2017-11-17 02:58:23 +0000
committerVedant Kumar <vsk@apple.com>2017-11-17 02:58:23 +0000
commitfaaa42ad0a62594ffd28c60ca9fe91676670a15d (patch)
tree7a8cf492627dc1b9dfe4e0acdcbec51a9df730d7 /llvm/test/tools/llvm-profdata
parent69855491eee9252f32bf2c2d60374eb75fb9b4e3 (diff)
downloadbcm5719-llvm-faaa42ad0a62594ffd28c60ca9fe91676670a15d.tar.gz
bcm5719-llvm-faaa42ad0a62594ffd28c60ca9fe91676670a15d.zip
[llvm-profdata] Fix a dangling reference to an error string
llvm-svn: 318502
Diffstat (limited to 'llvm/test/tools/llvm-profdata')
-rw-r--r--llvm/test/tools/llvm-profdata/Inputs/counter-mismatch-1.proftext4
-rw-r--r--llvm/test/tools/llvm-profdata/Inputs/counter-mismatch-2.proftext5
-rw-r--r--llvm/test/tools/llvm-profdata/Inputs/counter-mismatch-3.proftext6
-rw-r--r--llvm/test/tools/llvm-profdata/Inputs/counter-mismatch-4.proftext7
-rw-r--r--llvm/test/tools/llvm-profdata/threaded-count-mismatch.test10
5 files changed, 32 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-profdata/Inputs/counter-mismatch-1.proftext b/llvm/test/tools/llvm-profdata/Inputs/counter-mismatch-1.proftext
new file mode 100644
index 00000000000..d54d0ad6ffe
--- /dev/null
+++ b/llvm/test/tools/llvm-profdata/Inputs/counter-mismatch-1.proftext
@@ -0,0 +1,4 @@
+foo
+1024
+1
+0
diff --git a/llvm/test/tools/llvm-profdata/Inputs/counter-mismatch-2.proftext b/llvm/test/tools/llvm-profdata/Inputs/counter-mismatch-2.proftext
new file mode 100644
index 00000000000..261bfdde595
--- /dev/null
+++ b/llvm/test/tools/llvm-profdata/Inputs/counter-mismatch-2.proftext
@@ -0,0 +1,5 @@
+foo
+1024
+2
+0
+0
diff --git a/llvm/test/tools/llvm-profdata/Inputs/counter-mismatch-3.proftext b/llvm/test/tools/llvm-profdata/Inputs/counter-mismatch-3.proftext
new file mode 100644
index 00000000000..ca70a71a923
--- /dev/null
+++ b/llvm/test/tools/llvm-profdata/Inputs/counter-mismatch-3.proftext
@@ -0,0 +1,6 @@
+foo
+1024
+3
+0
+0
+0
diff --git a/llvm/test/tools/llvm-profdata/Inputs/counter-mismatch-4.proftext b/llvm/test/tools/llvm-profdata/Inputs/counter-mismatch-4.proftext
new file mode 100644
index 00000000000..f403382e913
--- /dev/null
+++ b/llvm/test/tools/llvm-profdata/Inputs/counter-mismatch-4.proftext
@@ -0,0 +1,7 @@
+foo
+1024
+4
+0
+0
+0
+0
diff --git a/llvm/test/tools/llvm-profdata/threaded-count-mismatch.test b/llvm/test/tools/llvm-profdata/threaded-count-mismatch.test
new file mode 100644
index 00000000000..58c13d626b0
--- /dev/null
+++ b/llvm/test/tools/llvm-profdata/threaded-count-mismatch.test
@@ -0,0 +1,10 @@
+# Test multithreaded error reporting.
+
+RUN: not llvm-profdata merge -j 4 -o %t.profdata \
+RUN: %S/Inputs/counter-mismatch-1.proftext \
+RUN: %S/Inputs/counter-mismatch-2.proftext \
+RUN: %S/Inputs/counter-mismatch-3.proftext \
+RUN: %S/Inputs/counter-mismatch-4.proftext \
+RUN: 2>&1 | FileCheck %s
+
+CHECK: Function basic block count change detected (counter mismatch)
OpenPOWER on IntegriCloud