diff options
author | Duncan Sands <baldrick@free.fr> | 2010-10-28 15:57:30 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2010-10-28 15:57:30 +0000 |
commit | c1d7807fd529db25bf1b84c1f657a3fd5f14023c (patch) | |
tree | 6a094dae4903f6c5c49477b02a208da4191af875 /test | |
parent | f22b74608ede59dabc55fab66f2142f369f9dbfb (diff) | |
download | external_llvm-c1d7807fd529db25bf1b84c1f657a3fd5f14023c.zip external_llvm-c1d7807fd529db25bf1b84c1f657a3fd5f14023c.tar.gz external_llvm-c1d7807fd529db25bf1b84c1f657a3fd5f14023c.tar.bz2 |
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')
-rw-r--r-- | test/Bitcode/null-type.ll | 2 | ||||
-rw-r--r-- | test/Bitcode/null-type.ll.bc | bin | 0 -> 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 0000000..5d3dfab --- /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 Binary files differnew file mode 100644 index 0000000..f0a97d9 --- /dev/null +++ b/test/Bitcode/null-type.ll.bc |