summaryrefslogtreecommitdiffstats
path: root/llvm/test/tools/llvm-objcopy/compress-debug-sections-invalid-format.test
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/tools/llvm-objcopy/compress-debug-sections-invalid-format.test')
-rw-r--r--llvm/test/tools/llvm-objcopy/compress-debug-sections-invalid-format.test5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-objcopy/compress-debug-sections-invalid-format.test b/llvm/test/tools/llvm-objcopy/compress-debug-sections-invalid-format.test
new file mode 100644
index 00000000000..854dfe26560
--- /dev/null
+++ b/llvm/test/tools/llvm-objcopy/compress-debug-sections-invalid-format.test
@@ -0,0 +1,5 @@
+# RUN: yaml2obj %p/Inputs/compress-debug-sections.yaml -o %t.o
+# RUN: not llvm-objcopy --compress-debug-sections=zlib-fake %t.o 2>&1 | FileCheck %s
+
+# CHECK: Invalid or unsupported --compress-debug-sections format: zlib-fake.
+
OpenPOWER on IntegriCloud