diff options
-rw-r--r-- | clang/include/clang/Driver/CLCompatOptions.td | 1 | ||||
-rw-r--r-- | clang/test/Driver/cl-options.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/clang/include/clang/Driver/CLCompatOptions.td b/clang/include/clang/Driver/CLCompatOptions.td index a520046d45b..574830c07f8 100644 --- a/clang/include/clang/Driver/CLCompatOptions.td +++ b/clang/include/clang/Driver/CLCompatOptions.td @@ -143,6 +143,7 @@ def _SLASH_Gy : CLFlag<"Gy">; def _SLASH_Gy_ : CLFlag<"Gy-">; def _SLASH_GZ : CLFlag<"GZ">; def _SLASH_MP : CLJoined<"MP">; +def _SLASH_o : CLJoinedOrSeparate<"o">; def _SLASH_w : CLJoined<"w">; def _SLASH_Za : CLFlag<"Za">; def _SLASH_Zc : CLJoined<"Zc:">; diff --git a/clang/test/Driver/cl-options.c b/clang/test/Driver/cl-options.c index dc33db61b5a..ab0320cf6e9 100644 --- a/clang/test/Driver/cl-options.c +++ b/clang/test/Driver/cl-options.c @@ -107,6 +107,7 @@ // (/Zs is for syntax-only) // RUN: %clang_cl /Zs /EHsc /Fdfoo /fp:precise /Gd /GL /GL- -- %s 2>&1 // RUN: %clang_cl /Zs /Gm /Gm- /GS /Gy /Gy- /GZ -- %s 2>&1 +// RUN: %clang_cl /Zs /ofoo.obj /o foo.obj -- %s 2>&1 // RUN: %clang_cl /Zs /wfoo /Zc:wchar_t- -- %s 2>&1 // RUN: %clang_cl /Zs /ZI /Zi /MP -- %s 2>&1 |