[libcxx-commits] [PATCH] D126901: [libc++][test] Fix unused variable warning in string_view tests
Joe Loser via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Jun 2 11:13:15 PDT 2022
jloser created this revision.
jloser added a reviewer: Mordante.
Herald added a project: All.
jloser requested review of this revision.
Herald added a project: libc++.
Herald added a subscriber: libcxx-commits.
Herald added a reviewer: libc++.
In 6423a9f0ec8ba70049ea76e7bcfc9a9d1a54e826 <https://reviews.llvm.org/rG6423a9f0ec8ba70049ea76e7bcfc9a9d1a54e826>, I accidentally thought this was
getting tested, but these variables are unused. Just remove the lines instead of
leaving them commented out.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D126901
Files:
libcxx/test/std/strings/string.view/string.view.template/ends_with.ptr.pass.cpp
libcxx/test/std/strings/string.view/string.view.template/starts_with.ptr.pass.cpp
Index: libcxx/test/std/strings/string.view/string.view.template/starts_with.ptr.pass.cpp
===================================================================
--- libcxx/test/std/strings/string.view/string.view.template/starts_with.ptr.pass.cpp
+++ libcxx/test/std/strings/string.view/string.view.template/starts_with.ptr.pass.cpp
@@ -26,9 +26,6 @@
SV sv0 {};
SV sv1 { s, 1 };
SV sv2 { s, 2 };
- SV sv3 { s, 3 };
- SV sv4 { s, 4 };
- SV sv5 { s, 5 };
SV svNot {"def", 3 };
LIBCPP_ASSERT_NOEXCEPT(sv0.starts_with(""));
Index: libcxx/test/std/strings/string.view/string.view.template/ends_with.ptr.pass.cpp
===================================================================
--- libcxx/test/std/strings/string.view/string.view.template/ends_with.ptr.pass.cpp
+++ libcxx/test/std/strings/string.view/string.view.template/ends_with.ptr.pass.cpp
@@ -26,9 +26,6 @@
SV sv0 {};
SV sv1 { s + 4, 1 };
SV sv2 { s + 3, 2 };
- SV sv3 { s + 2, 3 };
- SV sv4 { s + 1, 4 };
- SV sv5 { s , 5 };
SV svNot {"def", 3 };
LIBCPP_ASSERT_NOEXCEPT(sv0.ends_with(""));
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D126901.433808.patch
Type: text/x-patch
Size: 1130 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20220602/076eef1c/attachment-0001.bin>
More information about the libcxx-commits
mailing list