[libcxx] Remove use of uniform initialization from regex tests so that they compile in C++03.
Reviewers: danalbert, jroelofs, mclow.lists Reviewed By: mclow.lists Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D5957 git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@220707 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -21,8 +21,8 @@ int main()
|
||||
{
|
||||
using std::regex_constants::awk;
|
||||
|
||||
assert(std::regex_match("\4", std::regex{"\\4", awk}));
|
||||
assert(std::regex_match("\41", std::regex{"\\41", awk}));
|
||||
assert(std::regex_match("\141", std::regex{"\\141", awk}));
|
||||
assert(std::regex_match("\1411", std::regex{"\\1411", awk}));
|
||||
assert(std::regex_match("\4", std::regex("\\4", awk)));
|
||||
assert(std::regex_match("\41", std::regex("\\41", awk)));
|
||||
assert(std::regex_match("\141", std::regex("\\141", awk)));
|
||||
assert(std::regex_match("\1411", std::regex("\\1411", awk)));
|
||||
}
|
||||
|
Reference in New Issue
Block a user