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