diff options
author | David Blaikie <dblaikie@gmail.com> | 2014-04-01 00:27:28 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2014-04-01 00:27:28 +0000 |
commit | 1f27b5db16ee5bc7496ba3b06f38deb609402c61 (patch) | |
tree | 4b152ce087255d132638c53e639638316492c81c /test/Driver/nozlibcompress.c | |
parent | ea163e16a88402c26ba29bb7573fed549f31baac (diff) | |
download | clang-1f27b5db16ee5bc7496ba3b06f38deb609402c61.tar.gz clang-1f27b5db16ee5bc7496ba3b06f38deb609402c61.tar.bz2 clang-1f27b5db16ee5bc7496ba3b06f38deb609402c61.tar.xz |
Fix up compression related test cases
Fallout from r205261, ensure it doesn't matter how we disable compressed
debug info, even if zlib is missing and that we warn when we don't have
zlib and don't warn when we do, all while silently suppressing these
tests on the systems they weren't intended for...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@205271 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Driver/nozlibcompress.c')
-rw-r--r-- | test/Driver/nozlibcompress.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Driver/nozlibcompress.c b/test/Driver/nozlibcompress.c new file mode 100644 index 0000000000..4eac066165 --- /dev/null +++ b/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) |