1 //===----------------------------------------------------------------------===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is dual licensed under the MIT and the University of Illinois Open
6 // Source Licenses. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 
10 #include <tuple>
11 #include <string>
12 #include <memory>
13 
14 #include <cassert>
15 
main()16 int main()
17 {
18 #if _LIBCPP_STD_VER > 11
19     typedef std::unique_ptr<int> upint;
20     std::tuple<upint> t(upint(new int(4)));
21     upint p = std::get<upint>(t);
22 #else
23 #error
24 #endif
25 }
26