Changes imported from Abseil "staging" branch:

- 2620e69367081a44678a4550dff050cf9bef9106 Avoid unused variable warnings. by Abseil Team <absl-team@google.com>

GitOrigin-RevId: 2620e69367081a44678a4550dff050cf9bef9106
Change-Id: I0acf38c122e5bbb0864a8ee851ec72dea6c2cca0
This commit is contained in:
Abseil Team 2017-10-17 17:29:27 -07:00 committed by jueminyang
parent d8ac7afc10
commit 6cf9c73102

View file

@ -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();