diff options
author | David Majnemer <david.majnemer@gmail.com> | 2016-02-20 09:23:44 +0000 |
---|---|---|
committer | David Majnemer <david.majnemer@gmail.com> | 2016-02-20 09:23:44 +0000 |
commit | b880909ab5b98baa7d69cf84a8b5c82586c60df5 (patch) | |
tree | 352c9bf2fcbfb122965ebe7edd97b4b0ebe9bacc /clang/test/Driver/cl-options.c | |
parent | 4ff6f7362b75c634b43f152491d50d6809080634 (diff) | |
download | bcm5719-llvm-b880909ab5b98baa7d69cf84a8b5c82586c60df5.tar.gz bcm5719-llvm-b880909ab5b98baa7d69cf84a8b5c82586c60df5.zip |
[MSVC Compat] Add support for /GX, /GX-
These are legacy flags which map to /EHsc and /EHs-c- respectively.
llvm-svn: 261424
Diffstat (limited to 'clang/test/Driver/cl-options.c')
-rw-r--r-- | clang/test/Driver/cl-options.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/Driver/cl-options.c b/clang/test/Driver/cl-options.c index f624e777d29..0f9f9a4fcc0 100644 --- a/clang/test/Driver/cl-options.c +++ b/clang/test/Driver/cl-options.c @@ -211,6 +211,12 @@ // RUN: %clang_cl /FI asdf.h -### -- %s 2>&1 | FileCheck -check-prefix=FI_ %s // FI_: "-include" "asdf.h" +// RUN: %clang_cl /c /GX -### -- %s 2>&1 | FileCheck -check-prefix=GX %s +// GX: "-fcxx-exceptions" "-fexceptions" + +// RUN: %clang_cl /c /GX /GX- -### -- %s 2>&1 | FileCheck -check-prefix=GX_ %s +// GX_-NOT: "-fcxx-exceptions" "-fexceptions" + // We forward any unrecognized -W diagnostic options to cc1. // RUN: %clang_cl -Wunused-pragmas -### -- %s 2>&1 | FileCheck -check-prefix=WJoined %s // WJoined: "-cc1" |