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