Mark string_view's constructor from (ptr,len) as noexcept (an extension). Update the tests to check this (and other noexcept bits

llvm-svn: 316456
This commit is contained in:
Marshall Clow
2017-10-24 16:30:06 +00:00
parent 9c8f853ca9
commit ac2b3e3a7a
5 changed files with 16 additions and 4 deletions

View File

@@ -21,6 +21,8 @@ template<typename T>
void test () {
#if TEST_STD_VER > 11
{
ASSERT_NOEXCEPT(T());
constexpr T sv1;
static_assert ( sv1.size() == 0, "" );
static_assert ( sv1.empty(), "");