Placate unused variable warnings uncovered by improvements to clang's -Wunused-variable

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@315809 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Benjamin Kramer
2017-10-14 15:52:38 +00:00
parent c85f85a56b
commit 5384fd8538
21 changed files with 28 additions and 0 deletions

View File

@@ -147,6 +147,7 @@ int main()
#if TEST_STD_VER > 11
{
constexpr std::tuple<Empty> t0{Empty()};
(void)t0;
}
{
constexpr std::tuple<A, A> t(3, 2);

View File

@@ -102,6 +102,8 @@ int main()
using T = NonDefaultConstructible<>;
T v(42);
std::tuple<T, T> t(v, v);
(void)t;
std::tuple<T, T> t2(42, 42);
(void)t2;
}
}

View File

@@ -49,6 +49,7 @@ int main()
{
{
std::tuple<> t;
(void)t;
}
{
std::tuple<int> t;
@@ -88,6 +89,7 @@ int main()
}
{
constexpr std::tuple<> t;
(void)t;
}
{
constexpr std::tuple<int> t;