summaryrefslogtreecommitdiffstats
path: root/llvm/test/tools
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/tools')
-rw-r--r--llvm/test/tools/llvm-profdata/Inputs/malformed-ptr-to-counter-array.profrawbin0 -> 563560 bytes
-rw-r--r--llvm/test/tools/llvm-profdata/malformed-ptr-to-counter-array.test5
2 files changed, 5 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-profdata/Inputs/malformed-ptr-to-counter-array.profraw b/llvm/test/tools/llvm-profdata/Inputs/malformed-ptr-to-counter-array.profraw
new file mode 100644
index 00000000000..72fddd76fc6
--- /dev/null
+++ b/llvm/test/tools/llvm-profdata/Inputs/malformed-ptr-to-counter-array.profraw
Binary files differ
diff --git a/llvm/test/tools/llvm-profdata/malformed-ptr-to-counter-array.test b/llvm/test/tools/llvm-profdata/malformed-ptr-to-counter-array.test
new file mode 100644
index 00000000000..24a68e35fad
--- /dev/null
+++ b/llvm/test/tools/llvm-profdata/malformed-ptr-to-counter-array.test
@@ -0,0 +1,5 @@
+REQUIRES: zlib
+
+RUN: not llvm-profdata merge -o /dev/null %p/Inputs/malformed-ptr-to-counter-array.profraw 2>&1 | FileCheck %s
+
+CHECK: Malformed instrumentation profile data
OpenPOWER on IntegriCloud