1*0a6a1f1dSLionel Sambuc // 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 2*0a6a1f1dSLionel Sambuc // 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 3f4a2713aSLionel Sambuc 4f4a2713aSLionel Sambuc // CHECK: "-cc1" 5f4a2713aSLionel Sambuc // CHECK-NOT: "-Oignore" 6f4a2713aSLionel Sambuc // CHECK: "-Omagic" 7f4a2713aSLionel Sambuc // CHECK-NOT: "-Oignore" 8f4a2713aSLionel Sambuc 9*0a6a1f1dSLionel Sambuc // RM-WERROR: ### CCC_OVERRIDE_OPTIONS: x-Werror +-msse 10f4a2713aSLionel Sambuc // RM-WERROR-NEXT: ### Deleting argument -Werror 11f4a2713aSLionel Sambuc // RM-WERROR-NEXT: ### Adding argument -msse at end 12f4a2713aSLionel Sambuc // RM-WERROR-NOT: "-Werror" 13