1e8029e54f1c7cb1f758ef19edb7745fa382fe96cMarshall Clow//===----------------------------------------------------------------------===//
2e8029e54f1c7cb1f758ef19edb7745fa382fe96cMarshall Clow//
3e8029e54f1c7cb1f758ef19edb7745fa382fe96cMarshall Clow//                     The LLVM Compiler Infrastructure
4e8029e54f1c7cb1f758ef19edb7745fa382fe96cMarshall Clow//
5e8029e54f1c7cb1f758ef19edb7745fa382fe96cMarshall Clow// This file is dual licensed under the MIT and the University of Illinois Open
6e8029e54f1c7cb1f758ef19edb7745fa382fe96cMarshall Clow// Source Licenses. See LICENSE.TXT for details.
7e8029e54f1c7cb1f758ef19edb7745fa382fe96cMarshall Clow//
8e8029e54f1c7cb1f758ef19edb7745fa382fe96cMarshall Clow//===----------------------------------------------------------------------===//
9e8029e54f1c7cb1f758ef19edb7745fa382fe96cMarshall Clow
10e8029e54f1c7cb1f758ef19edb7745fa382fe96cMarshall Clow#include <utility>
11e8029e54f1c7cb1f758ef19edb7745fa382fe96cMarshall Clow#include <complex>
12e8029e54f1c7cb1f758ef19edb7745fa382fe96cMarshall Clow
13e8029e54f1c7cb1f758ef19edb7745fa382fe96cMarshall Clow#include <cassert>
14e8029e54f1c7cb1f758ef19edb7745fa382fe96cMarshall Clow
15e8029e54f1c7cb1f758ef19edb7745fa382fe96cMarshall Clowint main()
16e8029e54f1c7cb1f758ef19edb7745fa382fe96cMarshall Clow{
17e8029e54f1c7cb1f758ef19edb7745fa382fe96cMarshall Clow#if _LIBCPP_STD_VER > 11
18e8029e54f1c7cb1f758ef19edb7745fa382fe96cMarshall Clow    typedef std::complex<float> cf;
19e8029e54f1c7cb1f758ef19edb7745fa382fe96cMarshall Clow    auto t1 = std::make_pair<int, int> ( 42, 43 );
20e8029e54f1c7cb1f758ef19edb7745fa382fe96cMarshall Clow    assert ( std::get<int>(t1) == 42 ); // two ints
21e8029e54f1c7cb1f758ef19edb7745fa382fe96cMarshall Clow#else
22e8029e54f1c7cb1f758ef19edb7745fa382fe96cMarshall Clow#error
23e8029e54f1c7cb1f758ef19edb7745fa382fe96cMarshall Clow#endif
24e8029e54f1c7cb1f758ef19edb7745fa382fe96cMarshall Clow}
25