diff options
author | Abseil Team <absl-team@google.com> | 2017-10-18T00·29-0700 |
---|---|---|
committer | jueminyang <jueminyang@google.com> | 2017-10-18T14·56-0400 |
commit | 6cf9c731027f4d8aebe3c60df8e64317e6870870 (patch) | |
tree | 473a1f3a87304946c09174e60e51858d0977f38d /absl | |
parent | d8ac7afc105255e451b0a560f7d7fe30a26898cf (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.cc | 4 |
1 files changed, 4 insertions, 0 deletions
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(); |