1*0a6a1f1dSLionel Sambuc // Don't attempt slash switches on msys bash. 2*0a6a1f1dSLionel Sambuc // REQUIRES: shell-preserves-root 3*0a6a1f1dSLionel Sambuc 4*0a6a1f1dSLionel Sambuc // Note: %s must be preceded by --, otherwise it may be interpreted as a 5*0a6a1f1dSLionel Sambuc // command-line option, e.g. on Mac where %s is commonly under /Users. 6*0a6a1f1dSLionel Sambuc 7*0a6a1f1dSLionel Sambuc // RUN: %clang_cl /c /EHsc -### -- %s 2>&1 | FileCheck -check-prefix=EHsc %s 8*0a6a1f1dSLionel Sambuc // EHsc: "-fexceptions" 9*0a6a1f1dSLionel Sambuc 10*0a6a1f1dSLionel Sambuc // RUN: %clang_cl /c /EHs-c- -### -- %s 2>&1 | FileCheck -check-prefix=EHs_c_ %s 11*0a6a1f1dSLionel Sambuc // EHs_c_-NOT: "-fexceptions" 12*0a6a1f1dSLionel Sambuc 13*0a6a1f1dSLionel Sambuc // RUN: %clang_cl /c /EHs- /EHc- -### -- %s 2>&1 | FileCheck -check-prefix=EHs_EHc_ %s 14*0a6a1f1dSLionel Sambuc // EHs_EHc_-NOT: "-fexceptions" 15*0a6a1f1dSLionel Sambuc 16*0a6a1f1dSLionel Sambuc // RUN: %clang_cl /c /EHs- /EHs -### -- %s 2>&1 | FileCheck -check-prefix=EHs_EHs %s 17*0a6a1f1dSLionel Sambuc // EHs_EHs: "-fexceptions" 18*0a6a1f1dSLionel Sambuc 19*0a6a1f1dSLionel Sambuc // RUN: %clang_cl /c /EHs- /EHsa -### -- %s 2>&1 | FileCheck -check-prefix=EHs_EHa %s 20*0a6a1f1dSLionel Sambuc // EHs_EHa: "-fexceptions" 21*0a6a1f1dSLionel Sambuc 22*0a6a1f1dSLionel Sambuc // RUN: %clang_cl /c /EHinvalid -### -- %s 2>&1 | FileCheck -check-prefix=EHinvalid %s 23*0a6a1f1dSLionel Sambuc // EHinvalid: error: invalid value 'invalid' in '/EH' 24*0a6a1f1dSLionel Sambuc // EHinvalid-NOT: error: 25