[libc++] Add yet another test for inverted character classes

This was reported as part of a bug report that ended up being a
duplicate for r340609, but I'm adding the test case since it's
ever so slightly different from what we had before.

llvm-svn: 370109
This commit is contained in:
Louis Dionne 2019-08-27 20:39:10 +00:00
parent 27e66bf710
commit b5aefed40a
1 changed files with 3 additions and 0 deletions

View File

@ -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;
}