summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/tools/llvm-objcopy/ELF/strip-debug.test4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-objcopy/ELF/strip-debug.test b/llvm/test/tools/llvm-objcopy/ELF/strip-debug.test
index b88744e5f42..d7079f6abcb 100644
--- a/llvm/test/tools/llvm-objcopy/ELF/strip-debug.test
+++ b/llvm/test/tools/llvm-objcopy/ELF/strip-debug.test
@@ -6,6 +6,10 @@
# Verify that the previous run of llvm-objcopy has not modified the input.
# RUN: cmp %t %t3
+# RUN: llvm-objcopy -g %t %t2g
+# Verify that --strip-debug and -g produce the same output
+# RUN: cmp %t2 %t2g
+
# RUN: llvm-strip --strip-debug %t3
# RUN: cmp %t2 %t3
OpenPOWER on IntegriCloud