summaryrefslogtreecommitdiffstats
path: root/llvm/test/Bitcode
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/Bitcode')
-rw-r--r--llvm/test/Bitcode/Inputs/invalid-array-element-type.bcbin0 -> 452 bytes
-rw-r--r--llvm/test/Bitcode/Inputs/invalid-vector-element-type.bcbin0 -> 452 bytes
-rw-r--r--llvm/test/Bitcode/invalid.test7
3 files changed, 7 insertions, 0 deletions
diff --git a/llvm/test/Bitcode/Inputs/invalid-array-element-type.bc b/llvm/test/Bitcode/Inputs/invalid-array-element-type.bc
new file mode 100644
index 00000000000..3ce4ba2f77d
--- /dev/null
+++ b/llvm/test/Bitcode/Inputs/invalid-array-element-type.bc
Binary files differ
diff --git a/llvm/test/Bitcode/Inputs/invalid-vector-element-type.bc b/llvm/test/Bitcode/Inputs/invalid-vector-element-type.bc
new file mode 100644
index 00000000000..9c6c625c918
--- /dev/null
+++ b/llvm/test/Bitcode/Inputs/invalid-vector-element-type.bc
Binary files differ
diff --git a/llvm/test/Bitcode/invalid.test b/llvm/test/Bitcode/invalid.test
index 89cd0e908f0..6dfab58375e 100644
--- a/llvm/test/Bitcode/invalid.test
+++ b/llvm/test/Bitcode/invalid.test
@@ -98,3 +98,10 @@ RUN: not llvm-dis -disable-output %p/Inputs/invalid-fwdref-type-mismatch.bc 2>&1
RUN: FileCheck --check-prefix=FWDREF-TYPE %s
FWDREF-TYPE: Invalid record
+
+RUN: not llvm-dis -disable-output %p/Inputs/invalid-array-element-type.bc 2>&1 | \
+RUN: FileCheck --check-prefix=ELEMENT-TYPE %s
+RUN: not llvm-dis -disable-output %p/Inputs/invalid-vector-element-type.bc 2>&1 | \
+RUN: FileCheck --check-prefix=ELEMENT-TYPE %s
+
+ELEMENT-TYPE: Invalid type
OpenPOWER on IntegriCloud