Fix warning in tuple tests. The test suite should now run clean with most warnings enabled

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@272822 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Eric Fiselier
2016-06-15 19:41:52 +00:00
parent 6bdead7593
commit 461797d21a

View File

@@ -21,18 +21,13 @@ int main () {
std::tuple<std::unique_ptr<char>> up;
std::tuple<std::shared_ptr<char>> sp;
std::tuple<std::weak_ptr <char>> wp;
// std::tuple<std::auto_ptr <char>> ap;
}
{
std::tuple<std::unique_ptr<char[]>> up;
std::tuple<std::shared_ptr<char[]>> sp;
std::tuple<std::weak_ptr <char[]>> wp;
// std::tuple<std::auto_ptr <char[]>> ap;
}
{
std::tuple<std::unique_ptr<char[5]>> up;
std::tuple<std::shared_ptr<char[5]>> sp;
std::tuple<std::weak_ptr <char[5]>> wp;
// std::tuple<std::auto_ptr <char[5]>> ap;
}
// Smart pointers of type 'T[N]' are not tested here since they are not
// supported by the standard nor by libc++'s implementation.
// See http://reviews.llvm.org/D21320 for move information.
}