summaryrefslogtreecommitdiffstats
path: root/clang/test/Driver/nozlibcompress.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Driver/nozlibcompress.c')
-rw-r--r--clang/test/Driver/nozlibcompress.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/Driver/nozlibcompress.c b/clang/test/Driver/nozlibcompress.c
new file mode 100644
index 00000000000..4eac0661655
--- /dev/null
+++ b/clang/test/Driver/nozlibcompress.c
@@ -0,0 +1,6 @@
+// RUN: %clang -c %s -Wa,--compress-debug-sections 2>&1 | FileCheck %s
+// RUN: %clang -c %s -Wa,--compress-debug-sections -Wa,--nocompress-debug-sections 2>&1 | FileCheck --check-prefix=NOWARN %s
+// REQUIRES: nozlib
+
+// CHECK: warning: cannot compress debug sections (zlib not installed)
+// NOWARN-NOT: warning: cannot compress debug sections (zlib not installed)
OpenPOWER on IntegriCloud