summaryrefslogtreecommitdiffstats
path: root/libcxx/test
diff options
context:
space:
mode:
Diffstat (limited to 'libcxx/test')
-rw-r--r--libcxx/test/std/re/re.const/re.synopt/syntax_option_type.pass.cpp4
-rw-r--r--libcxx/test/std/re/re.regex/re.regex.construct/default.pass.cpp2
2 files changed, 5 insertions, 1 deletions
diff --git a/libcxx/test/std/re/re.const/re.synopt/syntax_option_type.pass.cpp b/libcxx/test/std/re/re.const/re.synopt/syntax_option_type.pass.cpp
index 49ce2b5c482..c34da53eed8 100644
--- a/libcxx/test/std/re/re.const/re.synopt/syntax_option_type.pass.cpp
+++ b/libcxx/test/std/re/re.const/re.synopt/syntax_option_type.pass.cpp
@@ -38,7 +38,11 @@ int main(int, char**)
assert(std::regex_constants::nosubs != 0);
assert(std::regex_constants::optimize != 0);
assert(std::regex_constants::collate != 0);
+#ifdef _LIBCPP_ABI_REGEX_CONSTANTS_NONZERO // https://bugs.llvm.org/show_bug.cgi?id=35967
+ assert(std::regex_constants::ECMAScript != 0);
+#else
assert(std::regex_constants::ECMAScript == 0);
+#endif
assert(std::regex_constants::basic != 0);
assert(std::regex_constants::extended != 0);
assert(std::regex_constants::awk != 0);
diff --git a/libcxx/test/std/re/re.regex/re.regex.construct/default.pass.cpp b/libcxx/test/std/re/re.regex/re.regex.construct/default.pass.cpp
index f706229e683..9705d7040ba 100644
--- a/libcxx/test/std/re/re.regex/re.regex.construct/default.pass.cpp
+++ b/libcxx/test/std/re/re.regex/re.regex.construct/default.pass.cpp
@@ -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);
}
OpenPOWER on IntegriCloud