[libcxx] r272822 - Fix warning in tuple tests. The test suite should now run clean with most warnings enabled

Eric Fiselier via cfe-commits cfe-commits at lists.llvm.org
Wed Jun 15 12:41:53 PDT 2016


Author: ericwf
Date: Wed Jun 15 14:41:52 2016
New Revision: 272822

URL: http://llvm.org/viewvc/llvm-project?rev=272822&view=rev
Log:
Fix warning in tuple tests. The test suite should now run clean with most warnings enabled

Modified:
    libcxx/trunk/test/std/utilities/tuple/tuple.general/tuple.smartptr.pass.cpp

Modified: libcxx/trunk/test/std/utilities/tuple/tuple.general/tuple.smartptr.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/tuple/tuple.general/tuple.smartptr.pass.cpp?rev=272822&r1=272821&r2=272822&view=diff
==============================================================================
--- libcxx/trunk/test/std/utilities/tuple/tuple.general/tuple.smartptr.pass.cpp (original)
+++ libcxx/trunk/test/std/utilities/tuple/tuple.general/tuple.smartptr.pass.cpp Wed Jun 15 14:41:52 2016
@@ -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.
 }
\ No newline at end of file




More information about the cfe-commits mailing list