//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. 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() { #ifdef _LIBCPP_MOVE static_assert((std::is_same()), A&&>::value), ""); #else static_assert((std::is_same()), A>::value), ""); #endif }