Fix PR#35967: '<regex> syntax_option_type is not a proper bitmask' Sadly, this is an ABI break, so it's only available if you define either '_LIBCPP_ABI_VERSION > 2' or '_LIBCPP_ABI_UNSTABLE' or '_LIBCPP_ABI_REGEX_CONSTANTS_NONZERO' and rebuild your dylib.

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@357190 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Marshall Clow
2019-03-28 17:30:23 +00:00
parent 4ff4db7f84
commit cc07c8937b
4 changed files with 51 additions and 13 deletions

View File

@@ -21,7 +21,7 @@ void
test()
{
std::basic_regex<CharT> r;
assert(r.flags() == 0);
assert(r.flags() == std::regex_constants::ECMAScript);
assert(r.mark_count() == 0);
}