Fix tests for extended noexcept in the container adaptors tests

llvm-svn: 300652
This commit is contained in:
Eric Fiselier 2017-04-19 02:07:12 +00:00
parent 6190625381
commit 2662e56d25
6 changed files with 12 additions and 9 deletions

View File

@ -17,7 +17,6 @@
// This tests a conforming extension
// UNSUPPORTED: c++98, c++03
#include <queue>
#include <cassert>
@ -27,8 +26,10 @@
int main()
{
#if defined(_LIBCPP_VERSION)
{
typedef std::priority_queue<MoveOnly> C;
static_assert(std::is_nothrow_default_constructible<C>::value, "");
}
#endif
}

View File

@ -7,6 +7,8 @@
//
//===----------------------------------------------------------------------===//
// UNSUPPORTED: c++98, c++03
// <queue>
// priority_queue(priority_queue&&)
@ -15,8 +17,6 @@
// This tests a conforming extension
// UNSUPPORTED: c++98, c++03
#include <queue>
#include <cassert>

View File

@ -16,8 +16,6 @@
// This tests a conforming extension
// UNSUPPORTED: c++98, c++03
#include <queue>
#include <cassert>
@ -26,8 +24,10 @@
int main()
{
#if defined(_LIBCPP_VERSION)
{
typedef std::queue<MoveOnly> C;
static_assert(std::is_nothrow_default_constructible<C>::value, "");
}
#endif
}

View File

@ -16,7 +16,6 @@
// This tests a conforming extension
// UNSUPPORTED: c++98, c++03
#include <queue>
#include <cassert>
@ -26,8 +25,10 @@
int main()
{
#if defined(_LIBCPP_VERSION)
{
typedef std::queue<MoveOnly> C;
static_assert(std::is_nothrow_move_constructible<C>::value, "");
}
#endif
}

View File

@ -16,7 +16,6 @@
// This tests a conforming extension
// UNSUPPORTED: c++98, c++03
#include <stack>
#include <cassert>
@ -26,8 +25,10 @@
int main()
{
#if defined(_LIBCPP_VERSION)
{
typedef std::stack<MoveOnly> C;
static_assert(std::is_nothrow_default_constructible<C>::value, "");
}
#endif
}

View File

@ -16,8 +16,6 @@
// This tests a conforming extension
// UNSUPPORTED: c++98, c++03
#include <stack>
#include <cassert>
@ -26,8 +24,10 @@
int main()
{
#if defined(_LIBCPP_VERSION)
{
typedef std::stack<MoveOnly> C;
static_assert(std::is_nothrow_move_constructible<C>::value, "");
}
#endif
}