clang-cl: make sure we still parse -fms-version= after r213119
authorHans Wennborg <hans@hanshq.net>
Wed, 16 Jul 2014 16:03:56 +0000 (16:03 +0000)
committerHans Wennborg <hans@hanshq.net>
Wed, 16 Jul 2014 16:03:56 +0000 (16:03 +0000)
The CoreOption flag got lost in the changes.

llvm-svn: 213164

clang/include/clang/Driver/Options.td
clang/test/Driver/cl-options.c

index 1c3f33f..f1fc02e 100644 (file)
@@ -585,7 +585,7 @@ def fms_extensions : Flag<["-"], "fms-extensions">, Group<f_Group>, Flags<[CC1Op
   HelpText<"Accept some non-standard constructs supported by the Microsoft compiler">;
 def fms_compatibility : Flag<["-"], "fms-compatibility">, Group<f_Group>, Flags<[CC1Option]>,
   HelpText<"Enable full Microsoft Visual C++ compatibility">;
-def fmsc_version : Joined<["-"], "fmsc-version=">, Group<f_Group>, Flags<[DriverOption]>,
+def fmsc_version : Joined<["-"], "fmsc-version=">, Group<f_Group>, Flags<[DriverOption, CoreOption]>,
   HelpText<"Microsoft compiler version number to report in _MSC_VER (0 = don't define it (default))">;
 def fms_compatibility_version
     : Joined<["-"], "fms-compatibility-version=">,
index 6288391..216f505 100644 (file)
 // RTTI-NOT: "-fno-rtti-data"
 // RTTI-NOT: "-fno-rtti"
 
+// Accept "core" clang options.
+// (/Zs is for syntax-only)
+// RUN: %clang_cl /Zs \
+// RUN:     -fmsc-version=1800 \
+// RUN:     -- %s 2>&1
+
 
 void f() { }