forked from OSchip/llvm-project
[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:
parent
27e66bf710
commit
b5aefed40a
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue