Mark string_view's constructor from (ptr,len) as noexcept (an extension). Update the tests to check this (and other noexcept bits
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@316456 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -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(), "");
|
||||
|
||||
Reference in New Issue
Block a user