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 105cb52824fc2a0caf233311e91d9a2a53368f04adDan Albert// UNSUPPORTED: c++98, c++03, c++11 115cb52824fc2a0caf233311e91d9a2a53368f04adDan Albert 12e8029e54f1c7cb1f758ef19edb7745fa382fe96cMarshall Clow#include <tuple> 13e8029e54f1c7cb1f758ef19edb7745fa382fe96cMarshall Clow#include <string> 14e8029e54f1c7cb1f758ef19edb7745fa382fe96cMarshall Clow#include <complex> 15e8029e54f1c7cb1f758ef19edb7745fa382fe96cMarshall Clow 16e8029e54f1c7cb1f758ef19edb7745fa382fe96cMarshall Clow#include <cassert> 17e8029e54f1c7cb1f758ef19edb7745fa382fe96cMarshall Clow 18e8029e54f1c7cb1f758ef19edb7745fa382fe96cMarshall Clowint main() 19e8029e54f1c7cb1f758ef19edb7745fa382fe96cMarshall Clow{ 20e8029e54f1c7cb1f758ef19edb7745fa382fe96cMarshall Clow#if _LIBCPP_STD_VER > 11 21ab61b2c9f1058302d13e59cadf360a5afce5eaa9Howard Hinnant typedef std::complex<float> cf; 22ab61b2c9f1058302d13e59cadf360a5afce5eaa9Howard Hinnant auto t1 = std::make_tuple<int, std::string> ( 42, "Hi" ); 2390dc8dd841b975fccfa4a278b9b44065d3644839Dan Albert assert (( std::get<cf>(t1) == cf {1,2} )); // no such type 24e8029e54f1c7cb1f758ef19edb7745fa382fe96cMarshall Clow#else 25e8029e54f1c7cb1f758ef19edb7745fa382fe96cMarshall Clow#error 26e8029e54f1c7cb1f758ef19edb7745fa382fe96cMarshall Clow#endif 27e8029e54f1c7cb1f758ef19edb7745fa382fe96cMarshall Clow} 28