summaryrefslogtreecommitdiff
path: root/absl
diff options
context:
space:
mode:
authorGravatar Abseil Team <absl-team@google.com>2017-10-17 17:29:27 -0700
committerGravatar jueminyang <jueminyang@google.com>2017-10-18 10:56:40 -0400
commit6cf9c731027f4d8aebe3c60df8e64317e6870870 (patch)
tree473a1f3a87304946c09174e60e51858d0977f38d /absl
parentd8ac7afc105255e451b0a560f7d7fe30a26898cf (diff)
Changes imported from Abseil "staging" branch:
- 2620e69367081a44678a4550dff050cf9bef9106 Avoid unused variable warnings. by Abseil Team <absl-team@google.com> GitOrigin-RevId: 2620e69367081a44678a4550dff050cf9bef9106 Change-Id: I0acf38c122e5bbb0864a8ee851ec72dea6c2cca0
Diffstat (limited to 'absl')
-rw-r--r--absl/strings/string_view_test.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/absl/strings/string_view_test.cc b/absl/strings/string_view_test.cc
index 6be6f3b8..13fc214b 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();