diff options
Diffstat (limited to 'test/Bindings/llvm-c')
-rw-r--r-- | test/Bindings/llvm-c/Inputs/invalid.ll.bc | bin | 0 -> 332 bytes | |||
-rw-r--r-- | test/Bindings/llvm-c/add_named_metadata_operand.ll | 2 | ||||
-rw-r--r-- | test/Bindings/llvm-c/invalid-bitcode.test | 3 | ||||
-rw-r--r-- | test/Bindings/llvm-c/set_metadata.ll | 2 |
4 files changed, 7 insertions, 0 deletions
diff --git a/test/Bindings/llvm-c/Inputs/invalid.ll.bc b/test/Bindings/llvm-c/Inputs/invalid.ll.bc Binary files differnew file mode 100644 index 0000000..a85c364 --- /dev/null +++ b/test/Bindings/llvm-c/Inputs/invalid.ll.bc diff --git a/test/Bindings/llvm-c/add_named_metadata_operand.ll b/test/Bindings/llvm-c/add_named_metadata_operand.ll new file mode 100644 index 0000000..fcc833d --- /dev/null +++ b/test/Bindings/llvm-c/add_named_metadata_operand.ll @@ -0,0 +1,2 @@ +; RUN: llvm-c-test --add-named-metadata-operand < /dev/null +; This used to trigger an assertion diff --git a/test/Bindings/llvm-c/invalid-bitcode.test b/test/Bindings/llvm-c/invalid-bitcode.test new file mode 100644 index 0000000..6318a9b --- /dev/null +++ b/test/Bindings/llvm-c/invalid-bitcode.test @@ -0,0 +1,3 @@ +; RUN: not llvm-c-test --module-dump < %S/Inputs/invalid.ll.bc 2>&1 | FileCheck %s + +CHECK: Error parsing bitcode: Unknown attribute kind (48) diff --git a/test/Bindings/llvm-c/set_metadata.ll b/test/Bindings/llvm-c/set_metadata.ll new file mode 100644 index 0000000..0a65b8c --- /dev/null +++ b/test/Bindings/llvm-c/set_metadata.ll @@ -0,0 +1,2 @@ +; RUN: llvm-c-test --set-metadata < /dev/null +; This used to trigger an assertion |