summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorFilipe Cabecinhas <me@filcab.net>2016-06-05 18:43:17 +0000
committerFilipe Cabecinhas <me@filcab.net>2016-06-05 18:43:17 +0000
commit780fc2c61767db762d72450315c3a75e360b3459 (patch)
treea24740c71a94c1faeba42681d7439b14ae8af19f /test
parent0b28fbb3a59a8fda1dfeab4cb9dd366453834e73 (diff)
[BitCode] Don't allow constants of void type.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@271848 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/Bitcode/Inputs/invalid-void-constant.bcbin0 -> 452 bytes
-rw-r--r--test/Bitcode/invalid.test5
2 files changed, 5 insertions, 0 deletions
diff --git a/test/Bitcode/Inputs/invalid-void-constant.bc b/test/Bitcode/Inputs/invalid-void-constant.bc
new file mode 100644
index 00000000000..7ab7b4167e3
--- /dev/null
+++ b/test/Bitcode/Inputs/invalid-void-constant.bc
Binary files differ
diff --git a/test/Bitcode/invalid.test b/test/Bitcode/invalid.test
index 499320140d7..43704639279 100644
--- a/test/Bitcode/invalid.test
+++ b/test/Bitcode/invalid.test
@@ -212,3 +212,8 @@ RUN: not llvm-dis -disable-output %p/Inputs/invalid-name-with-0-byte.bc 2>&1 | \
RUN: FileCheck --check-prefix=NAME-WITH-0 %s
NAME-WITH-0: Invalid value name
+
+RUN: not llvm-dis -disable-output %p/Inputs/invalid-void-constant.bc 2>&1 | \
+RUN: FileCheck --check-prefix=VOID-CONSTANT-TYPE %s
+
+VOID-CONSTANT-TYPE: Invalid constant type