//===----------------------------------------------------------------------===// // // 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, c++11 #include #include #include #include int main() { #if _LIBCPP_STD_VER > 11 typedef std::unique_ptr upint; std::tuple t(upint(new int(4))); upint p = std::get(t); #else #error #endif }