From 6cf9c731027f4d8aebe3c60df8e64317e6870870 Mon Sep 17 00:00:00 2001 From: Abseil Team Date: Tue, 17 Oct 2017 17:29:27 -0700 Subject: Changes imported from Abseil "staging" branch: - 2620e69367081a44678a4550dff050cf9bef9106 Avoid unused variable warnings. by Abseil Team GitOrigin-RevId: 2620e69367081a44678a4550dff050cf9bef9106 Change-Id: I0acf38c122e5bbb0864a8ee851ec72dea6c2cca0 --- absl/strings/string_view_test.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'absl/strings') diff --git a/absl/strings/string_view_test.cc b/absl/strings/string_view_test.cc index 6be6f3b82b11..13fc214b841c 100644 --- a/absl/strings/string_view_test.cc +++ b/absl/strings/string_view_test.cc @@ -922,6 +922,10 @@ TEST(StringViewTest, ConstexprCompiles) { constexpr absl::string_view::iterator const_begin_empty = sp.begin(); constexpr absl::string_view::iterator const_end_empty = sp.end(); EXPECT_EQ(const_begin_empty, const_end_empty); + + constexpr absl::string_view::iterator const_begin_nullptr = cstr.begin(); + constexpr absl::string_view::iterator const_end_nullptr = cstr.end(); + EXPECT_EQ(const_begin_nullptr, const_end_nullptr); #endif constexpr absl::string_view::iterator const_begin = cstr_len.begin(); -- cgit 1.4.1