2014-01-15 09:41:52 +08:00
|
|
|
// RUN: env CCC_OVERRIDE_OPTIONS="#+-Os +-Oz +-O +-O3 +-Oignore +a +b +c xb Xa Omagic ^-### " %clang -target x86_64-apple-darwin %s -O2 b -O3 2>&1 | FileCheck %s
|
|
|
|
// RUN: env CCC_OVERRIDE_OPTIONS="x-Werror +-msse" %clang -target x86_64-apple-darwin -Werror %s -c -### 2>&1 | FileCheck %s -check-prefix=RM-WERROR
|
2013-09-03 22:09:54 +08:00
|
|
|
|
2013-09-03 21:26:49 +08:00
|
|
|
// CHECK: "-cc1"
|
|
|
|
// CHECK-NOT: "-Oignore"
|
|
|
|
// CHECK: "-Omagic"
|
|
|
|
// CHECK-NOT: "-Oignore"
|
2013-02-22 02:56:55 +08:00
|
|
|
|
2014-01-15 09:41:52 +08:00
|
|
|
// RM-WERROR: ### CCC_OVERRIDE_OPTIONS: x-Werror +-msse
|
2013-02-22 02:56:55 +08:00
|
|
|
// RM-WERROR-NEXT: ### Deleting argument -Werror
|
2013-09-24 21:37:21 +08:00
|
|
|
// RM-WERROR-NEXT: ### Adding argument -msse at end
|
2013-07-30 04:29:53 +08:00
|
|
|
// RM-WERROR-NOT: "-Werror"
|