]> granicus.if.org Git - clang/commitdiff
Make this test not try to write on object file and test all of the
authorChandler Carruth <chandlerc@gmail.com>
Mon, 29 Jul 2013 20:29:53 +0000 (20:29 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Mon, 29 Jul 2013 20:29:53 +0000 (20:29 +0000)
output rather than just part of it.

Also, remove the frighteningly ancient comment about not working with
the gcc-driver. (!!!)

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@187376 91177308-0d34-0410-b5e6-96231b3b80d8

test/Driver/qa_override.c

index f89815739b12eb8857048e239b84d87648a24446..ec77b41011b528d4ac1a584f1669a3b5b490e79e 100644 (file)
@@ -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"