aboutsummaryrefslogtreecommitdiff
path: root/test/Driver/compress.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Driver/compress.c')
-rw-r--r--test/Driver/compress.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Driver/compress.c b/test/Driver/compress.c
new file mode 100644
index 000000000000..6cdc6b72243e
--- /dev/null
+++ b/test/Driver/compress.c
@@ -0,0 +1,8 @@
+// RUN: %clang -### -c -integrated-as -Wa,-compress-debug-sections %s 2>&1 | FileCheck --check-prefix=COMPRESS_DEBUG %s
+// RUN: %clang -### -c -integrated-as -Wa,--compress-debug-sections %s 2>&1 | FileCheck --check-prefix=COMPRESS_DEBUG %s
+// REQUIRES: zlib
+
+// COMPRESS_DEBUG: "-compress-debug-sections"
+
+// RUN: %clang -### -c -integrated-as -Wa,--compress-debug-sections -Wa,--nocompress-debug-sections %s 2>&1 | FileCheck --check-prefix=NOCOMPRESS_DEBUG %s
+// NOCOMPRESS_DEBUG-NOT: "-compress-debug-sections"