diff options
Diffstat (limited to 'llvm/test/Bitcode')
-rw-r--r-- | llvm/test/Bitcode/invalid.ll | 7 | ||||
-rw-r--r-- | llvm/test/Bitcode/invalid.ll.bc | bin | 0 -> 332 bytes |
2 files changed, 7 insertions, 0 deletions
diff --git a/llvm/test/Bitcode/invalid.ll b/llvm/test/Bitcode/invalid.ll new file mode 100644 index 00000000000..49189bf8c06 --- /dev/null +++ b/llvm/test/Bitcode/invalid.ll @@ -0,0 +1,7 @@ +; RUN: not llvm-dis < %s.bc 2>&1 | FileCheck %s + +; CHECK: llvm-dis: Unknown attribute kind + +; invalid.ll.bc has an invalid attribute number. +; The test checks that LLVM reports the error and doesn't access freed memory +; in doing so. diff --git a/llvm/test/Bitcode/invalid.ll.bc b/llvm/test/Bitcode/invalid.ll.bc Binary files differnew file mode 100644 index 00000000000..b8b1c47b6a3 --- /dev/null +++ b/llvm/test/Bitcode/invalid.ll.bc |