add tuple_cat test for const T

llvm-svn: 359256
This commit is contained in:
Eric Fiselier 2019-04-26 01:06:32 +00:00
parent 7e528bc4ce
commit eea2287f83
1 changed files with 6 additions and 6 deletions

View File

@ -240,18 +240,18 @@ int main(int, char**)
}
{
int x = 101;
std::tuple<int, int&, const int&, int&&> t(42, x, x, std::move(x));
std::tuple<int, const int, int&, const int&, int&&> t(42, 101, x, x, std::move(x));
const auto& ct = t;
std::tuple<int, int&, const int&> t2(42, x, x);
std::tuple<int, const int, int&, const int&> t2(42, 101, x, x);
const auto& ct2 = t2;
auto r = std::tuple_cat(std::move(t), std::move(ct), t2, ct2);
ASSERT_SAME_TYPE(decltype(r), std::tuple<
int, int&, const int&, int&&,
int, int&, const int&, int&&,
int, int&, const int&,
int, int&, const int&>);
int, const int, int&, const int&, int&&,
int, const int, int&, const int&, int&&,
int, const int, int&, const int&,
int, const int, int&, const int&>);
((void)r);
}
return 0;