diff options
| author | Chandler Carruth <chandlerc@gmail.com> | 2013-07-29 20:29:53 +0000 |
|---|---|---|
| committer | Chandler Carruth <chandlerc@gmail.com> | 2013-07-29 20:29:53 +0000 |
| commit | 35e64ba03a1537703eb20d130ebedc274bee7b43 (patch) | |
| tree | 95e2e22d1aeb49faa40218fb6d04e26739bc80a0 | |
| parent | 620e978f69f4d133750a3b6caff7ca73dcb22198 (diff) | |
| download | bcm5719-llvm-35e64ba03a1537703eb20d130ebedc274bee7b43.tar.gz bcm5719-llvm-35e64ba03a1537703eb20d130ebedc274bee7b43.zip | |
Make this test not try to write on object file and test all of the
output rather than just part of it.
Also, remove the frighteningly ancient comment about not working with
the gcc-driver. (!!!)
llvm-svn: 187376
| -rw-r--r-- | clang/test/Driver/qa_override.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/clang/test/Driver/qa_override.c b/clang/test/Driver/qa_override.c index f89815739b1..ec77b41011b 100644 --- a/clang/test/Driver/qa_override.c +++ b/clang/test/Driver/qa_override.c @@ -1,8 +1,5 @@ // RUN: env QA_OVERRIDE_GCC3_OPTIONS="#+-Os +-Oz +-O +-O3 +-Oignore +a +b +c xb Xa Omagic ^-ccc-print-options " %clang x -O2 b -O3 2>&1 | FileCheck %s -// RUN: env QA_OVERRIDE_GCC3_OPTIONS="x-Werror +-mfoo" %clang -Werror %s -c 2>&1 | FileCheck %s -check-prefix=RM-WERROR - -// FIXME: It seems doesn't work with gcc-driver. -// REQUIRES: clang-driver +// RUN: env QA_OVERRIDE_GCC3_OPTIONS="x-Werror +-mfoo" %clang -Werror %s -c -### 2>&1 | FileCheck %s -check-prefix=RM-WERROR // CHECK-NOT: ### // CHECK: Option 0 - Name: "-ccc-print-options", Values: {} @@ -13,4 +10,5 @@ // RM-WERROR: ### QA_OVERRIDE_GCC3_OPTIONS: x-Werror +-mfoo // RM-WERROR-NEXT: ### Deleting argument -Werror // RM-WERROR-NEXT: ### Adding argument -mfoo at end -// RM-WERROR-NEXT: warning: argument unused during compilation: '-mfoo' +// RM-WERROR: warning: argument unused during compilation: '-mfoo' +// RM-WERROR-NOT: "-Werror" |

