2014-06-28 01:02:02 +08:00
|
|
|
// 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.
|
|
|
|
|
|
|
|
// RUN: %clang_cl /c /EHsc -### -- %s 2>&1 | FileCheck -check-prefix=EHsc %s
|
2015-10-09 01:29:07 +08:00
|
|
|
// EHsc: "-fcxx-exceptions"
|
|
|
|
// EHsc: "-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-15 02:16:48 +08:00
|
|
|
// RUN: %clang_cl /c /EHs- /EHs -### -- %s 2>&1 | FileCheck -check-prefix=EHs_EHs %s
|
2015-10-09 01:29:07 +08:00
|
|
|
// EHs_EHs: "-fcxx-exceptions"
|
|
|
|
// EHs_EHs: "-fexceptions"
|
2014-06-28 01:02:02 +08:00
|
|
|
|
2015-07-15 02:16:48 +08:00
|
|
|
// RUN: %clang_cl /c /EHs- /EHsa -### -- %s 2>&1 | FileCheck -check-prefix=EHs_EHa %s
|
2015-10-09 01:29:07 +08:00
|
|
|
// EHs_EHa: "-fcxx-exceptions"
|
|
|
|
// EHs_EHa: "-fexceptions"
|
2014-06-28 01:02:02 +08:00
|
|
|
|
2016-02-29 09:40:30 +08:00
|
|
|
// RUN: %clang_cl /c /EHa /EHc -### -- %s 2>&1 | FileCheck -check-prefix=EHa_EHc %s
|
|
|
|
// EHa_EHc: "-fcxx-exceptions"
|
|
|
|
// EHa_EHc: "-fexceptions"
|
|
|
|
// EHa_EHc-NOT: "-fexternc-nounwind"
|
|
|
|
|
2015-07-15 02:16:48 +08:00
|
|
|
// RUN: %clang_cl /c /EHinvalid -### -- %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:
|