mirror of
https://github.com/llvm-mirror/libcxx.git
synced 2025-10-24 12:02:36 +08:00
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:
@@ -21,18 +21,13 @@ int main () {
|
|||||||
std::tuple<std::unique_ptr<char>> up;
|
std::tuple<std::unique_ptr<char>> up;
|
||||||
std::tuple<std::shared_ptr<char>> sp;
|
std::tuple<std::shared_ptr<char>> sp;
|
||||||
std::tuple<std::weak_ptr <char>> wp;
|
std::tuple<std::weak_ptr <char>> wp;
|
||||||
// std::tuple<std::auto_ptr <char>> ap;
|
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
std::tuple<std::unique_ptr<char[]>> up;
|
std::tuple<std::unique_ptr<char[]>> up;
|
||||||
std::tuple<std::shared_ptr<char[]>> sp;
|
std::tuple<std::shared_ptr<char[]>> sp;
|
||||||
std::tuple<std::weak_ptr <char[]>> wp;
|
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.
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user