summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.creation/tuple_cat.pass.cpp
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2019-04-26 01:06:32 +0000
committerEric Fiselier <eric@efcs.ca>2019-04-26 01:06:32 +0000
commiteea2287f83b3ec8330b12b03a42adcc88938d3fe (patch)
tree2b25ffadf7089b8a9cc5d595f210fd1b4bbae4d6 /libcxx/test/std/utilities/tuple/tuple.tuple/tuple.creation/tuple_cat.pass.cpp
parent7e528bc4ce51daae5b90bf641f15ea564901de8b (diff)
downloadbcm5719-llvm-eea2287f83b3ec8330b12b03a42adcc88938d3fe.tar.gz
bcm5719-llvm-eea2287f83b3ec8330b12b03a42adcc88938d3fe.zip
add tuple_cat test for const T
llvm-svn: 359256
Diffstat (limited to 'libcxx/test/std/utilities/tuple/tuple.tuple/tuple.creation/tuple_cat.pass.cpp')
-rw-r--r--libcxx/test/std/utilities/tuple/tuple.tuple/tuple.creation/tuple_cat.pass.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.creation/tuple_cat.pass.cpp b/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.creation/tuple_cat.pass.cpp
index 5d5927d253a..b663a4801fe 100644
--- a/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.creation/tuple_cat.pass.cpp
+++ b/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.creation/tuple_cat.pass.cpp
@@ -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;
OpenPOWER on IntegriCloud