diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2018-07-28 11:07:56 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2018-07-28 11:07:56 +0000 |
| commit | f36202620b428c45a1c8d91743727c9313424fb2 (patch) | |
| tree | 14928d8970ba4890a6370aca4c38fc832d45f21f /test/std/iterators/iterator.container/empty.pass.cpp | |
| parent | 0294ba5648d889e48ffee8ddad25944e258940ae (diff) | |
Notes
Diffstat (limited to 'test/std/iterators/iterator.container/empty.pass.cpp')
| -rw-r--r-- | test/std/iterators/iterator.container/empty.pass.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/std/iterators/iterator.container/empty.pass.cpp b/test/std/iterators/iterator.container/empty.pass.cpp index cd000cc2fe763..f6fe2351d3c03 100644 --- a/test/std/iterators/iterator.container/empty.pass.cpp +++ b/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 ); } |
