summaryrefslogtreecommitdiff
path: root/test/Bitcode
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2010-10-28 15:57:30 +0000
committerDuncan Sands <baldrick@free.fr>2010-10-28 15:57:30 +0000
commitc1d7807fd529db25bf1b84c1f657a3fd5f14023c (patch)
tree6a094dae4903f6c5c49477b02a208da4191af875 /test/Bitcode
parentf22b74608ede59dabc55fab66f2142f369f9dbfb (diff)
Testcase for PR8494 (invalid bitcode crashing the bitcode reader).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117552 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Bitcode')
-rw-r--r--test/Bitcode/null-type.ll2
-rw-r--r--test/Bitcode/null-type.ll.bcbin0 -> 312 bytes
2 files changed, 2 insertions, 0 deletions
diff --git a/test/Bitcode/null-type.ll b/test/Bitcode/null-type.ll
new file mode 100644
index 00000000000..5d3dfab5753
--- /dev/null
+++ b/test/Bitcode/null-type.ll
@@ -0,0 +1,2 @@
+; RUN: not llvm-dis < %s.bc > /dev/null |& grep "Invalid MODULE_CODE_FUNCTION record"
+; PR8494
diff --git a/test/Bitcode/null-type.ll.bc b/test/Bitcode/null-type.ll.bc
new file mode 100644
index 00000000000..f0a97d94ce9
--- /dev/null
+++ b/test/Bitcode/null-type.ll.bc
Binary files differ