Avoid octal escape sequence warning with MSVC. Patch from STL@microsoft.com

llvm-svn: 272639
This commit is contained in:
Eric Fiselier 2016-06-14 05:47:46 +00:00
parent 9275b21947
commit d046d5422a
2 changed files with 3 additions and 3 deletions

View File

@ -25,5 +25,5 @@ int main()
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("\141" "1", std::regex("\\1411", awk)));
}

View File

@ -283,6 +283,6 @@ int main()
test(std::string("1234"), std::string("123"));
test(std::wstring(L"123"), std::wstring(L"123"));
test(std::wstring(L"1234"), std::wstring(L"123"));
test(std::string("123\00056", 6), std::string("123\00056", 6), false);
test(std::wstring(L"123\00056", 6), std::wstring(L"123\00056", 6), false);
test(std::string("123\000" "56", 6), std::string("123\000" "56", 6), false);
test(std::wstring(L"123\000" L"56", 6), std::wstring(L"123\000" L"56", 6), false);
}