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