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 <complex>
13 
14 #include <cassert>
15 
16 int main()
17 {
18 #if _LIBCPP_STD_VER > 11
19     typedef std::complex<float> cf;
20     auto t1 = std::make_tuple<int, std::string> ( 42, "Hi" );
21     assert ( std::get<cf>(t1) == cf {1,2} );    // no such type
22 #else
23 #error
24 #endif
25 }
26