diff options
-rw-r--r-- | libcxx/test/std/re/re.alg/re.alg.match/inverted_character_classes.pass.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libcxx/test/std/re/re.alg/re.alg.match/inverted_character_classes.pass.cpp b/libcxx/test/std/re/re.alg/re.alg.match/inverted_character_classes.pass.cpp index 9f3c44a06d2..4b5ed6a5fda 100644 --- a/libcxx/test/std/re/re.alg/re.alg.match/inverted_character_classes.pass.cpp +++ b/libcxx/test/std/re/re.alg/re.alg.match/inverted_character_classes.pass.cpp @@ -53,5 +53,8 @@ int main(int, char**) { assert(!std::regex_match("abZcd", std::regex("^ab\\dcd"))); assert(!std::regex_match("ab5cd", std::regex("^ab\\Dcd"))); + assert(std::regex_match("_xyz_", std::regex("_(\\s|\\S)+_"))); + assert(std::regex_match("_xyz_", std::regex("_[\\s\\S]+_"))); + return 0; } |