1 //===----------------------------------------------------------------------===//
3 // The LLVM Compiler Infrastructure
5 // This file is dual licensed under the MIT and the University of Illinois Open
6 // Source Licenses. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
13 // constexpr basic_string_view () noexcept;
15 #include <experimental/string_view>
18 #include "test_macros.h"
25 static_assert ( sv1.size() == 0, "" );
26 static_assert ( sv1.empty(), "");
32 assert ( sv1.size() == 0 );
33 assert ( sv1.empty());
38 typedef std::experimental::string_view string_view;
39 typedef std::experimental::u16string_view u16string_view;
40 typedef std::experimental::u32string_view u32string_view;
41 typedef std::experimental::wstring_view wstring_view;
44 test<u16string_view> ();
45 test<u32string_view> ();
46 test<wstring_view> ();