summaryrefslogtreecommitdiffstats
path: root/clang/test/Driver/warning-options_pedantic.cpp
diff options
context:
space:
mode:
authorFilipe Cabecinhas <me@filcab.net>2015-02-12 03:37:55 +0000
committerFilipe Cabecinhas <me@filcab.net>2015-02-12 03:37:55 +0000
commitd0c6468a2b2b5dc980cf36d0c210c0e7a16a3a71 (patch)
tree17933f5e3354232ae1c9ac285bd14df3bf2e0673 /clang/test/Driver/warning-options_pedantic.cpp
parent33305e7280f05453854628c883071ab82f4729cb (diff)
downloadbcm5719-llvm-d0c6468a2b2b5dc980cf36d0c210c0e7a16a3a71.tar.gz
bcm5719-llvm-d0c6468a2b2b5dc980cf36d0c210c0e7a16a3a71.zip
Fix tests so they work when the linker is gcc
If the linker is gcc (the default for Generic_ELF toolchains), we end up passing most of the arguments to the linker. Some tests were failing to account for this in their usage of *-NOT: lines and would fail if compiled with -DLLVM_DEFAULT_TARGET_TRIPLE=x86_64-unknown-unknown llvm-svn: 228902
Diffstat (limited to 'clang/test/Driver/warning-options_pedantic.cpp')
-rw-r--r--clang/test/Driver/warning-options_pedantic.cpp14
1 files changed, 10 insertions, 4 deletions
diff --git a/clang/test/Driver/warning-options_pedantic.cpp b/clang/test/Driver/warning-options_pedantic.cpp
index e40f7716f41..4dbf92d12ba 100644
--- a/clang/test/Driver/warning-options_pedantic.cpp
+++ b/clang/test/Driver/warning-options_pedantic.cpp
@@ -1,7 +1,13 @@
-// RUN: %clang -### -pedantic -no-pedantic %s 2>&1 | FileCheck -check-prefix=NO_PEDANTIC %s
-// RUN: %clang -### -pedantic -Wno-pedantic %s 2>&1 | FileCheck -check-prefix=PEDANTIC %s
+// Make sure we don't match the -NOT lines with the linker invocation.
+// Delimiters match the start of the cc1 and the start of the linker lines
+// DELIMITERS: {{^ *"}}
+
+// RUN: %clang -### -pedantic -no-pedantic %s 2>&1 | FileCheck -check-prefix=NO_PEDANTIC -check-prefix=DELIMITERS %s
+// RUN: %clang -### -pedantic -Wno-pedantic %s 2>&1 | FileCheck -check-prefix=PEDANTIC -check-prefix=DELIMITERS %s
// NO_PEDANTIC-NOT: -pedantic
-// RUN: %clang -### -pedantic -pedantic -no-pedantic -pedantic %s 2>&1 | FileCheck -check-prefix=PEDANTIC %s
-// RUN: %clang -### -pedantic -pedantic -no-pedantic -Wpedantic %s 2>&1 | FileCheck -check-prefix=NO_PEDANTIC %s
+// RUN: %clang -### -pedantic -pedantic -no-pedantic -pedantic %s 2>&1 | FileCheck -check-prefix=PEDANTIC -check-prefix=DELIMITERS %s
+// RUN: %clang -### -pedantic -pedantic -no-pedantic -Wpedantic %s 2>&1 | FileCheck -check-prefix=NO_PEDANTIC -check-prefix=DELIMITERS %s
// PEDANTIC: -pedantic
// REQUIRES: clang-driver
+
+// DELIMITERS: {{^ *"}}
OpenPOWER on IntegriCloud