2014-06-28 01:02:02 +08:00
|
|
|
// Don't attempt slash switches on msys bash.
|
|
|
|
// REQUIRES: shell-preserves-root
|
|
|
|
|
|
|
|
// Note: %s must be preceded by --, otherwise it may be interpreted as a
|
|
|
|
// command-line option, e.g. on Mac where %s is commonly under /Users.
|
|
|
|
|
2015-07-11 06:25:44 +08:00
|
|
|
// RUN: %clang_cl /c /EHsc -fexceptions -### -- %s 2>&1 | FileCheck -check-prefix=EHscfex %s
|
|
|
|
// EHscfex: "-fcxx-exceptions"
|
|
|
|
// EHscfex: "-fexceptions"
|
|
|
|
|
2014-06-28 01:02:02 +08:00
|
|
|
// RUN: %clang_cl /c /EHsc -### -- %s 2>&1 | FileCheck -check-prefix=EHsc %s
|
2015-07-11 06:25:44 +08:00
|
|
|
// EHsc-NOT: "-fcxx-exceptions"
|
|
|
|
// EHsc-NOT: "-fexceptions"
|
2014-06-28 01:02:02 +08:00
|
|
|
|
|
|
|
// RUN: %clang_cl /c /EHs-c- -### -- %s 2>&1 | FileCheck -check-prefix=EHs_c_ %s
|
2015-01-30 09:04:16 +08:00
|
|
|
// EHs_c_-NOT: "-fcxx-exceptions"
|
2015-02-06 02:56:03 +08:00
|
|
|
// EHs_c_-NOT: "-fexceptions"
|
2014-06-28 01:02:02 +08:00
|
|
|
|
|
|
|
// RUN: %clang_cl /c /EHs- /EHc- -### -- %s 2>&1 | FileCheck -check-prefix=EHs_EHc_ %s
|
2015-01-30 09:04:16 +08:00
|
|
|
// EHs_EHc_-NOT: "-fcxx-exceptions"
|
2015-02-06 02:56:03 +08:00
|
|
|
// EHs_EHc_-NOT: "-fexceptions"
|
2014-06-28 01:02:02 +08:00
|
|
|
|
2015-07-11 06:25:44 +08:00
|
|
|
// RUN: %clang_cl /c /EHs- /EHs -fexceptions -### -- %s 2>&1 | FileCheck -check-prefix=EHs_EHs %s
|
2015-01-30 09:04:16 +08:00
|
|
|
// EHs_EHs: "-fcxx-exceptions"
|
2014-06-28 01:02:02 +08:00
|
|
|
// EHs_EHs: "-fexceptions"
|
|
|
|
|
2015-07-11 06:25:44 +08:00
|
|
|
// RUN: %clang_cl /c /EHs- /EHsa -fexceptions -### -- %s 2>&1 | FileCheck -check-prefix=EHs_EHa %s
|
2015-01-30 09:04:16 +08:00
|
|
|
// EHs_EHa: "-fcxx-exceptions"
|
2014-06-28 01:02:02 +08:00
|
|
|
// EHs_EHa: "-fexceptions"
|
|
|
|
|
2015-07-11 06:25:44 +08:00
|
|
|
// RUN: %clang_cl /c /EHinvalid -fexceptions -### -- %s 2>&1 | FileCheck -check-prefix=EHinvalid %s
|
2014-06-28 01:02:02 +08:00
|
|
|
// EHinvalid: error: invalid value 'invalid' in '/EH'
|
|
|
|
// EHinvalid-NOT: error:
|