From c1d7807fd529db25bf1b84c1f657a3fd5f14023c Mon Sep 17 00:00:00 2001 From: Duncan Sands Date: Thu, 28 Oct 2010 15:57:30 +0000 Subject: [PATCH] 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 --- test/Bitcode/null-type.ll | 2 ++ test/Bitcode/null-type.ll.bc | Bin 0 -> 312 bytes 2 files changed, 2 insertions(+) create mode 100644 test/Bitcode/null-type.ll create mode 100644 test/Bitcode/null-type.ll.bc 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 0000000000000000000000000000000000000000..f0a97d94ce9030ad9fb7578408be5d80ebce18d1 GIT binary patch literal 312 bcmZ>AK5$P_fB_5`Ss-+?0)!qVafbi^k~jkW literal 0 HcmV?d00001