summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.creation
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2015-02-05 20:28:37 +0000
committerEric Fiselier <eric@efcs.ca>2015-02-05 20:28:37 +0000
commitc281a7a19fbbf229334f595e879e0fed42613264 (patch)
treed4eaeac1d793795b29d0578203c694b19b7b04b1 /libcxx/test/std/utilities/tuple/tuple.tuple/tuple.creation
parentd40bb5353dd91dd3b6c886495b20dd08bf3fe7d2 (diff)
downloadbcm5719-llvm-c281a7a19fbbf229334f595e879e0fed42613264.tar.gz
bcm5719-llvm-c281a7a19fbbf229334f595e879e0fed42613264.zip
Get tests running with warnings. Fix warnings in headers and tests
llvm-svn: 228344
Diffstat (limited to 'libcxx/test/std/utilities/tuple/tuple.tuple/tuple.creation')
-rw-r--r--libcxx/test/std/utilities/tuple/tuple.tuple/tuple.creation/tuple_cat.pass.cpp11
1 files changed, 10 insertions, 1 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 d1e2ce3ca95..3c5a8426331 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
@@ -25,16 +25,20 @@ int main()
{
{
std::tuple<> t = std::tuple_cat();
+ ((void)t); // Prevent unused warning
}
{
std::tuple<> t1;
std::tuple<> t2 = std::tuple_cat(t1);
+ ((void)t2); // Prevent unused warning
}
{
std::tuple<> t = std::tuple_cat(std::tuple<>());
+ ((void)t); // Prevent unused warning
}
{
std::tuple<> t = std::tuple_cat(std::array<int, 0>());
+ ((void)t); // Prevent unused warning
}
{
std::tuple<int> t1(1);
@@ -42,19 +46,23 @@ int main()
assert(std::get<0>(t) == 1);
}
-#if _LIBCPP_STD_VER > 11
+#if _LIBCPP_STD_VER > 11
{
constexpr std::tuple<> t = std::tuple_cat();
+ ((void)t); // Prevent unused warning
}
{
constexpr std::tuple<> t1;
constexpr std::tuple<> t2 = std::tuple_cat(t1);
+ ((void)t2); // Prevent unused warning
}
{
constexpr std::tuple<> t = std::tuple_cat(std::tuple<>());
+ ((void)t); // Prevent unused warning
}
{
constexpr std::tuple<> t = std::tuple_cat(std::array<int, 0>());
+ ((void)t); // Prevent unused warning
}
{
constexpr std::tuple<int> t1(1);
@@ -90,6 +98,7 @@ int main()
std::tuple<> t1;
std::tuple<> t2;
std::tuple<> t3 = std::tuple_cat(t1, t2);
+ ((void)t3); // Prevent unused warning
}
{
std::tuple<> t1;
OpenPOWER on IntegriCloud