//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// // UNSUPPORTED: c++98, c++03 // // template struct pair // constexpr pair(); #include #include #include "archetypes.hpp" int main() { using NonThrowingDefault = NonThrowingTypes::DefaultOnly; using ThrowingDefault = NonTrivialTypes::DefaultOnly; static_assert(!std::is_nothrow_default_constructible>::value, ""); static_assert(!std::is_nothrow_default_constructible>::value, ""); static_assert(!std::is_nothrow_default_constructible>::value, ""); static_assert( std::is_nothrow_default_constructible>::value, ""); }