summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/iterators/iterator.container/empty.pass.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libcxx/test/std/iterators/iterator.container/empty.pass.cpp')
-rw-r--r--libcxx/test/std/iterators/iterator.container/empty.pass.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/libcxx/test/std/iterators/iterator.container/empty.pass.cpp b/libcxx/test/std/iterators/iterator.container/empty.pass.cpp
index cd000cc2fe7..f6fe2351d3c 100644
--- a/libcxx/test/std/iterators/iterator.container/empty.pass.cpp
+++ b/libcxx/test/std/iterators/iterator.container/empty.pass.cpp
@@ -23,6 +23,10 @@
#include "test_macros.h"
+#if TEST_STD_VER > 14
+#include <string_view>
+#endif
+
template<typename C>
void test_const_container( const C& c )
{
@@ -74,6 +78,12 @@ int main()
test_const_container ( a );
test_const_container ( il );
+#if TEST_STD_VER > 14
+ std::string_view sv{"ABC"};
+ test_container ( sv );
+ test_const_container ( sv );
+#endif
+
static constexpr int arrA [] { 1, 2, 3 };
test_const_array ( arrA );
}
OpenPOWER on IntegriCloud