summaryrefslogtreecommitdiffstats
path: root/clang/test
diff options
context:
space:
mode:
authorDouglas Katzman <dougk@google.com>2015-11-17 20:28:07 +0000
committerDouglas Katzman <dougk@google.com>2015-11-17 20:28:07 +0000
commit78b37b05557eb2f3c656ee17d1b57e2c785964f1 (patch)
treeb40979f73619f5d6b0b2a1252f6dccdf651f794e /clang/test
parente7cbb3ed4fc793fe599d35d780c4d8fda9048aa0 (diff)
downloadbcm5719-llvm-78b37b05557eb2f3c656ee17d1b57e2c785964f1.tar.gz
bcm5719-llvm-78b37b05557eb2f3c656ee17d1b57e2c785964f1.zip
Use !hasArg with two options instead of !hasArg && !hasArg.
Thereby fixing a warning about failure to claim all args. llvm-svn: 253372
Diffstat (limited to 'clang/test')
-rw-r--r--clang/test/Driver/nostdlib.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/test/Driver/nostdlib.c b/clang/test/Driver/nostdlib.c
index e9ada317223..e6891f870d6 100644
--- a/clang/test/Driver/nostdlib.c
+++ b/clang/test/Driver/nostdlib.c
@@ -2,3 +2,10 @@
// RUN: FileCheck < %t %s
//
// CHECK-NOT: start-group
+
+// Most of the toolchains would check for -nostartfiles and -nostdlib
+// in a short-circuiting boolean expression, so if both of the preceding
+// options were present, the second would warn about being unused.
+// RUN: %clang -### -nostartfiles -nostdlib -target i386-apple-darwin %s \
+// RUN: 2>&1 | FileCheck %s -check-prefix=ARGSCLAIMED
+// ARGSCLAIMED-NOT: warning:
OpenPOWER on IntegriCloud