[libc++][test] Fix unused variable warning in string_view tests

In 6423a9f0ec, I accidentally thought this was
getting tested, but these variables are unused. Just remove the lines instead of
leaving them commented out.

Differential Revision: https://reviews.llvm.org/D126901
This commit is contained in:
Joe Loser 2022-06-02 12:11:06 -06:00
parent 5d25dbff67
commit 4be36dc77f
No known key found for this signature in database
GPG Key ID: 1CDBEBC050EA230D
2 changed files with 0 additions and 12 deletions

View File

@ -26,9 +26,6 @@ int main(int, char**)
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(""));
@ -68,9 +65,6 @@ int main(int, char**)
constexpr SV sv0 {};
constexpr SV sv1 { s + 4, 1 };
constexpr SV sv2 { s + 3, 2 };
// constexpr SV sv3 { s + 2, 3 };
// constexpr SV sv4 { s + 1, 4 };
// constexpr SV sv5 { s, 5 };
constexpr SV svNot {"def", 3 };
static_assert ( sv0.ends_with(""), "" );

View File

@ -26,9 +26,6 @@ int main(int, char**)
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(""));
@ -68,9 +65,6 @@ int main(int, char**)
constexpr SV sv0 {};
constexpr SV sv1 { s, 1 };
constexpr SV sv2 { s, 2 };
// constexpr SV sv3 { s, 3 };
// constexpr SV sv4 { s, 4 };
// constexpr SV sv5 { s, 5 };
constexpr SV svNot {"def", 3 };
static_assert ( sv0.starts_with(""), "" );