summaryrefslogtreecommitdiffstats
path: root/llvm/test/Bitcode
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2015-04-24 18:06:06 +0000
committerDavid Blaikie <dblaikie@gmail.com>2015-04-24 18:06:06 +0000
commit5ea1f7b7440b7050abb912ce360c7cabcd8c2881 (patch)
tree885d2dedc2fa53f5a428d7f522fe8a2e705de731 /llvm/test/Bitcode
parent08c5f1efc1c6d5c065eb9e66fc57ca681b8cf19e (diff)
downloadbcm5719-llvm-5ea1f7b7440b7050abb912ce360c7cabcd8c2881.tar.gz
bcm5719-llvm-5ea1f7b7440b7050abb912ce360c7cabcd8c2881.zip
[opaque pointer type] bitcode: add explicit callee type to invoke instructions
llvm-svn: 235735
Diffstat (limited to 'llvm/test/Bitcode')
-rw-r--r--llvm/test/Bitcode/Inputs/invalid-invoke-mismatched-explicit-type.bcbin0 -> 1728 bytes
-rw-r--r--llvm/test/Bitcode/Inputs/invalid-invoke-non-function-explicit-type.bcbin0 -> 1728 bytes
-rw-r--r--llvm/test/Bitcode/invalid.test6
3 files changed, 6 insertions, 0 deletions
diff --git a/llvm/test/Bitcode/Inputs/invalid-invoke-mismatched-explicit-type.bc b/llvm/test/Bitcode/Inputs/invalid-invoke-mismatched-explicit-type.bc
new file mode 100644
index 00000000000..bce88529508
--- /dev/null
+++ b/llvm/test/Bitcode/Inputs/invalid-invoke-mismatched-explicit-type.bc
Binary files differ
diff --git a/llvm/test/Bitcode/Inputs/invalid-invoke-non-function-explicit-type.bc b/llvm/test/Bitcode/Inputs/invalid-invoke-non-function-explicit-type.bc
new file mode 100644
index 00000000000..d7810bb964b
--- /dev/null
+++ b/llvm/test/Bitcode/Inputs/invalid-invoke-non-function-explicit-type.bc
Binary files differ
diff --git a/llvm/test/Bitcode/invalid.test b/llvm/test/Bitcode/invalid.test
index f2271e81f5b..0bed40b238f 100644
--- a/llvm/test/Bitcode/invalid.test
+++ b/llvm/test/Bitcode/invalid.test
@@ -22,6 +22,10 @@ RUN: not llvm-dis -disable-output %p/Inputs/invalid-call-mismatched-explicit-typ
RUN: FileCheck --check-prefix=MISMATCHED-EXPLICIT-CALL %s
RUN: not llvm-dis -disable-output %p/Inputs/invalid-call-non-function-explicit-type.bc 2>&1 | \
RUN: FileCheck --check-prefix=NON-FUNCTION-EXPLICIT-CALL %s
+RUN: not llvm-dis -disable-output %p/Inputs/invalid-invoke-mismatched-explicit-type.bc 2>&1 | \
+RUN: FileCheck --check-prefix=MISMATCHED-EXPLICIT-INVOKE %s
+RUN: not llvm-dis -disable-output %p/Inputs/invalid-invoke-non-function-explicit-type.bc 2>&1 | \
+RUN: FileCheck --check-prefix=NON-FUNCTION-EXPLICIT-INVOKE %s
INVALID-ENCODING: Invalid encoding
BAD-ABBREV: Abbreviation starts with an Array or a Blob
@@ -35,6 +39,8 @@ MISMATCHED-EXPLICIT-LOAD: Explicit load type does not match pointee type of poin
MISMATCHED-EXPLICIT-GEP-OPERATOR: Explicit gep operator type does not match pointee type of pointer operand
MISMATCHED-EXPLICIT-CALL: Explicit call type does not match pointee type of callee operand
NON-FUNCTION-EXPLICIT-CALL: Explicit call type is not a function type
+MISMATCHED-EXPLICIT-INVOKE: Explicit invoke type does not match pointee type of callee operand
+NON-FUNCTION-EXPLICIT-INVOKE: Explicit invoke type is not a function type
RUN: not llvm-dis -disable-output %p/Inputs/invalid-extractval-array-idx.bc 2>&1 | \
RUN: FileCheck --check-prefix=EXTRACT-ARRAY %s
OpenPOWER on IntegriCloud