[libcxx] r272639 - Avoid octal escape sequence warning with MSVC. Patch from STL at microsoft.com
Eric Fiselier via cfe-commits
cfe-commits at lists.llvm.org
Mon Jun 13 22:47:46 PDT 2016
Author: ericwf
Date: Tue Jun 14 00:47:46 2016
New Revision: 272639
URL: http://llvm.org/viewvc/llvm-project?rev=272639&view=rev
Log:
Avoid octal escape sequence warning with MSVC. Patch from STL at microsoft.com
Modified:
libcxx/trunk/test/std/re/re.regex/re.regex.construct/awk_oct.pass.cpp
libcxx/trunk/test/std/re/re.submatch/re.submatch.op/compare.pass.cpp
Modified: libcxx/trunk/test/std/re/re.regex/re.regex.construct/awk_oct.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/re/re.regex/re.regex.construct/awk_oct.pass.cpp?rev=272639&r1=272638&r2=272639&view=diff
==============================================================================
--- libcxx/trunk/test/std/re/re.regex/re.regex.construct/awk_oct.pass.cpp (original)
+++ libcxx/trunk/test/std/re/re.regex/re.regex.construct/awk_oct.pass.cpp Tue Jun 14 00:47:46 2016
@@ -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)));
}
Modified: libcxx/trunk/test/std/re/re.submatch/re.submatch.op/compare.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/re/re.submatch/re.submatch.op/compare.pass.cpp?rev=272639&r1=272638&r2=272639&view=diff
==============================================================================
--- libcxx/trunk/test/std/re/re.submatch/re.submatch.op/compare.pass.cpp (original)
+++ libcxx/trunk/test/std/re/re.submatch/re.submatch.op/compare.pass.cpp Tue Jun 14 00:47:46 2016
@@ -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);
}
More information about the cfe-commits
mailing list