From: Duncan Sands Date: Thu, 28 Oct 2010 15:57:30 +0000 (+0000) Subject: Testcase for PR8494 (invalid bitcode crashing the bitcode reader). X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=c1d7807fd529db25bf1b84c1f657a3fd5f14023c;p=oota-llvm.git 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 --- 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 Binary files /dev/null and b/test/Bitcode/null-type.ll.bc differ