diff options
author | Reid Kleckner <reid@kleckner.net> | 2015-07-14 18:16:48 +0000 |
---|---|---|
committer | Reid Kleckner <reid@kleckner.net> | 2015-07-14 18:16:48 +0000 |
commit | 5c6efed3f5cc85b55ea87e774b6a7701fe1d13df (patch) | |
tree | f25a08a28f5da735b37932f92effa0876ecf3032 /clang/test/Driver/cl-eh.cpp | |
parent | 780e50187b94064416be1c0794482c4152ce5ee1 (diff) | |
download | bcm5719-llvm-5c6efed3f5cc85b55ea87e774b6a7701fe1d13df.tar.gz bcm5719-llvm-5c6efed3f5cc85b55ea87e774b6a7701fe1d13df.zip |
[clang-cl] Disable C++ exceptions a different way
Rather than making -fexceptions a core option that enables C++ EH in
clang-cl, users can use the '-Xclang -fexceptions -Xclang
-fcxx-exceptions' flag set. We weren't going to expose -fexceptions in
clang-cl in the long run, so this way we don't add and then remove a
flag.
llvm-svn: 242176
Diffstat (limited to 'clang/test/Driver/cl-eh.cpp')
-rw-r--r-- | clang/test/Driver/cl-eh.cpp | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/clang/test/Driver/cl-eh.cpp b/clang/test/Driver/cl-eh.cpp index e80d39b9419..b43f31f83fc 100644 --- a/clang/test/Driver/cl-eh.cpp +++ b/clang/test/Driver/cl-eh.cpp @@ -4,9 +4,7 @@ // 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 -fexceptions -### -- %s 2>&1 | FileCheck -check-prefix=EHscfex %s -// EHscfex: "-fcxx-exceptions" -// EHscfex: "-fexceptions" +// FIXME: When C++ EH works, we can make this flag turn things back on. // RUN: %clang_cl /c /EHsc -### -- %s 2>&1 | FileCheck -check-prefix=EHsc %s // EHsc-NOT: "-fcxx-exceptions" @@ -20,14 +18,14 @@ // EHs_EHc_-NOT: "-fcxx-exceptions" // EHs_EHc_-NOT: "-fexceptions" -// RUN: %clang_cl /c /EHs- /EHs -fexceptions -### -- %s 2>&1 | FileCheck -check-prefix=EHs_EHs %s -// EHs_EHs: "-fcxx-exceptions" -// EHs_EHs: "-fexceptions" +// RUN: %clang_cl /c /EHs- /EHs -### -- %s 2>&1 | FileCheck -check-prefix=EHs_EHs %s +// EHs_EHs-NOT: "-fcxx-exceptions" +// EHs_EHs-NOT: "-fexceptions" -// RUN: %clang_cl /c /EHs- /EHsa -fexceptions -### -- %s 2>&1 | FileCheck -check-prefix=EHs_EHa %s -// EHs_EHa: "-fcxx-exceptions" -// EHs_EHa: "-fexceptions" +// RUN: %clang_cl /c /EHs- /EHsa -### -- %s 2>&1 | FileCheck -check-prefix=EHs_EHa %s +// EHs_EHa-NOT: "-fcxx-exceptions" +// EHs_EHa-NOT: "-fexceptions" -// RUN: %clang_cl /c /EHinvalid -fexceptions -### -- %s 2>&1 | FileCheck -check-prefix=EHinvalid %s +// RUN: %clang_cl /c /EHinvalid -### -- %s 2>&1 | FileCheck -check-prefix=EHinvalid %s // EHinvalid: error: invalid value 'invalid' in '/EH' // EHinvalid-NOT: error: |