//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// // // template class tuple; // constexpr tuple(); #include #include #include #include "../DefaultOnly.h" int main() { { std::tuple<> t; } { std::tuple t; assert(std::get<0>(t) == 0); } { std::tuple t; assert(std::get<0>(t) == 0); assert(std::get<1>(t) == nullptr); } { std::tuple t; assert(std::get<0>(t) == 0); assert(std::get<1>(t) == nullptr); assert(std::get<2>(t) == ""); } { std::tuple t; assert(std::get<0>(t) == 0); assert(std::get<1>(t) == nullptr); assert(std::get<2>(t) == ""); assert(std::get<3>(t) == DefaultOnly()); } }