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