• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 // UNSUPPORTED: c++98, c++03, c++11
11 
12 #include <tuple>
13 #include <string>
14 #include <memory>
15 
16 #include <cassert>
17 
main()18 int main()
19 {
20 #if _LIBCPP_STD_VER > 11
21     typedef std::unique_ptr<int> upint;
22     std::tuple<upint> t(upint(new int(4)));
23     upint p = std::get<upint>(t);
24 #else
25 #error
26 #endif
27 }
28