[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:
Eric Fiselier
2014-10-27 19:29:32 +00:00
parent b991975439
commit e4e883e6c8
5 changed files with 38 additions and 38 deletions

View File

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