diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/Bitcode/invalid.ll | 7 | ||||
-rw-r--r-- | test/Bitcode/invalid.ll.bc | bin | 0 -> 332 bytes |
2 files changed, 7 insertions, 0 deletions
diff --git a/test/Bitcode/invalid.ll b/test/Bitcode/invalid.ll new file mode 100644 index 0000000..49189bf --- /dev/null +++ b/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/test/Bitcode/invalid.ll.bc b/test/Bitcode/invalid.ll.bc Binary files differnew file mode 100644 index 0000000..b8b1c47 --- /dev/null +++ b/test/Bitcode/invalid.ll.bc |