[libcxx] r224297 - Fix the literal string that I said would be six elements long to actually be six elements long. Octal. Sheesh.

Marshall Clow mclow.lists at gmail.com
Mon Dec 15 16:45:47 PST 2014


Author: marshall
Date: Mon Dec 15 18:45:47 2014
New Revision: 224297

URL: http://llvm.org/viewvc/llvm-project?rev=224297&view=rev
Log:
Fix the literal string that I said would be six elements long to actually be six elements long. Octal. Sheesh.

Modified:
    libcxx/trunk/test/re/re.submatch/re.submatch.op/compare.pass.cpp

Modified: libcxx/trunk/test/re/re.submatch/re.submatch.op/compare.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/re/re.submatch/re.submatch.op/compare.pass.cpp?rev=224297&r1=224296&r2=224297&view=diff
==============================================================================
--- libcxx/trunk/test/re/re.submatch/re.submatch.op/compare.pass.cpp (original)
+++ libcxx/trunk/test/re/re.submatch/re.submatch.op/compare.pass.cpp Mon Dec 15 18:45:47 2014
@@ -282,6 +282,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\056", 6), std::string("123\056", 6), false);
-    test(std::wstring(L"123\056", 6), std::wstring(L"123\056", 6), false);
+    test(std::string("1234\00056", 6), std::string("123\056", 6), false);
+    test(std::wstring(L"123\00056", 6), std::wstring(L"123\056", 6), false);
 }





More information about the cfe-commits mailing list