//===----------------------------------------------------------------------===// // // 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 struct pair // template pair(U&& x, V&& y); #include #include #include int main() { #ifndef _LIBCPP_HAS_NO_RVALUE_REFERENCES { typedef std::pair, short*> P; P p(std::unique_ptr(new int(3)), nullptr); assert(*p.first == 3); assert(p.second == nullptr); } #endif // _LIBCPP_HAS_NO_RVALUE_REFERENCES }