Testcase for PR8494 (invalid bitcode crashing the bitcode reader).
authorDuncan Sands <baldrick@free.fr>
Thu, 28 Oct 2010 15:57:30 +0000 (15:57 +0000)
committerDuncan Sands <baldrick@free.fr>
Thu, 28 Oct 2010 15:57:30 +0000 (15:57 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117552 91177308-0d34-0410-b5e6-96231b3b80d8

test/Bitcode/null-type.ll [new file with mode: 0644]
test/Bitcode/null-type.ll.bc [new file with mode: 0644]

diff --git a/test/Bitcode/null-type.ll b/test/Bitcode/null-type.ll
new file mode 100644 (file)
index 0000000..5d3dfab
--- /dev/null
@@ -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 (file)
index 0000000..f0a97d9
Binary files /dev/null and b/test/Bitcode/null-type.ll.bc differ