Remove incorrect XFAILS

llvm-svn: 284005
This commit is contained in:
Eric Fiselier 2016-10-12 11:29:18 +00:00
parent d2c71a923e
commit 609fb0cc40
4 changed files with 2 additions and 16 deletions

View File

@ -8,7 +8,6 @@
//===----------------------------------------------------------------------===//
// UNSUPPORTED: c++98, c++03, c++11, c++14
// XFAIL: libcpp-no-exceptions
// <optional>
// optional<T>& operator=(const optional<T>& rhs);
@ -45,7 +44,6 @@ struct Z2
Z2& operator=(const Z2&) = default;
};
#if __cplusplus >= 201402
template <class T>
constexpr bool
test()
@ -55,23 +53,18 @@ test()
opt = opt2;
return true;
}
#endif
int main()
{
{
using T = int;
static_assert((std::is_trivially_copy_assignable<optional<T>>::value), "");
#if __cplusplus >= 201402
static_assert(test<T>(), "");
#endif
}
{
using T = X;
static_assert((std::is_trivially_copy_assignable<optional<T>>::value), "");
#if __cplusplus >= 201402
static_assert(test<T>(), "");
#endif
}
static_assert(!(std::is_trivially_copy_assignable<optional<Y>>::value), "");
static_assert(!(std::is_trivially_copy_assignable<optional<std::string>>::value), "");

View File

@ -8,7 +8,6 @@
//===----------------------------------------------------------------------===//
// UNSUPPORTED: c++98, c++03, c++11, c++14
// XFAIL: libcpp-no-exceptions
// <optional>
// optional<T>& operator=(optional<T>&& rhs);
@ -42,7 +41,6 @@ struct Z2
Z2& operator=(Z2&&) = default;
};
#if __cplusplus >= 201402
template <class T>
constexpr bool
test()
@ -52,23 +50,18 @@ test()
opt = std::move(opt2);
return true;
}
#endif
int main()
{
{
using T = int;
static_assert((std::is_trivially_copy_constructible<optional<T>>::value), "");
#if __cplusplus >= 201402
static_assert(test<T>(), "");
#endif
}
{
using T = X;
static_assert((std::is_trivially_copy_constructible<optional<T>>::value), "");
#if __cplusplus >= 201402
static_assert(test<T>(), "");
#endif
}
static_assert(!(std::is_trivially_move_assignable<optional<Y>>::value), "");
static_assert(!(std::is_trivially_move_assignable<optional<std::string>>::value), "");

View File

@ -8,7 +8,7 @@
//===----------------------------------------------------------------------===//
// UNSUPPORTED: c++98, c++03, c++11, c++14
// XFAIL: libcpp-no-exceptions
// <optional>
// optional(const optional<T>& rhs);

View File

@ -8,7 +8,7 @@
//===----------------------------------------------------------------------===//
// UNSUPPORTED: c++98, c++03, c++11, c++14
// XFAIL: libcpp-no-exceptions
// <optional>
// optional(optional<T>&& rhs);