//===----------------------------------------------------------------------===// // // 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. // //===----------------------------------------------------------------------===// // // template typename add_rvalue_reference::type declval() noexcept; #include #include class A { A(const A&); A& operator=(const A&); }; int main() { #ifndef _LIBCPP_HAS_NO_RVALUE_REFERENCES static_assert((std::is_same()), A&&>::value), ""); #else static_assert((std::is_same()), A>::value), ""); #endif }