[libcxx-commits] [libcxx] r372782 - [libc++] Try fixing tests that fail on GCC 5 and older

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Tue Sep 24 15:13:18 PDT 2019


Author: ldionne
Date: Tue Sep 24 15:13:17 2019
New Revision: 372782

URL: http://llvm.org/viewvc/llvm-project?rev=372782&view=rev
Log:
[libc++] Try fixing tests that fail on GCC 5 and older

Modified:
    libcxx/trunk/test/libcxx/type_traits/is_implicitly_default_constructible.pass.cpp
    libcxx/trunk/test/std/language.support/support.dynamic/nothrow_t.fail.cpp
    libcxx/trunk/test/std/thread/thread.mutex/thread.lock/types.fail.cpp
    libcxx/trunk/test/std/utilities/memory/allocator.tag/allocator_arg.fail.cpp
    libcxx/trunk/test/std/utilities/tuple/tuple.tuple/tuple.cnstr/default.fail.cpp
    libcxx/trunk/test/std/utilities/utility/pairs/pair.piecewise/piecewise_construct_t.fail.cpp
    libcxx/trunk/test/std/utilities/utility/pairs/pairs.pair/default.explicit.fail.cpp

Modified: libcxx/trunk/test/libcxx/type_traits/is_implicitly_default_constructible.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/libcxx/type_traits/is_implicitly_default_constructible.pass.cpp?rev=372782&r1=372781&r2=372782&view=diff
==============================================================================
--- libcxx/trunk/test/libcxx/type_traits/is_implicitly_default_constructible.pass.cpp (original)
+++ libcxx/trunk/test/libcxx/type_traits/is_implicitly_default_constructible.pass.cpp Tue Sep 24 15:13:17 2019
@@ -8,6 +8,9 @@
 
 // UNSUPPORTED: c++98, c++03
 
+// Before GCC 6, this trait fails. See https://stackoverflow.com/q/41799015/627587.
+// UNSUPPORTED: gcc-4, gcc-5
+
 // <type_traits>
 
 // __is_implicitly_default_constructible<Tp>

Modified: libcxx/trunk/test/std/language.support/support.dynamic/nothrow_t.fail.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/language.support/support.dynamic/nothrow_t.fail.cpp?rev=372782&r1=372781&r2=372782&view=diff
==============================================================================
--- libcxx/trunk/test/std/language.support/support.dynamic/nothrow_t.fail.cpp (original)
+++ libcxx/trunk/test/std/language.support/support.dynamic/nothrow_t.fail.cpp Tue Sep 24 15:13:17 2019
@@ -9,6 +9,10 @@
 
 // UNSUPPORTED: c++98, c++03
 
+// Before GCC 6, aggregate initialization kicks in.
+// See https://stackoverflow.com/q/41799015/627587.
+// UNSUPPORTED: gcc-4, gcc-5
+
 // struct nothrow_t {
 //   explicit nothrow_t() = default;
 // };

Modified: libcxx/trunk/test/std/thread/thread.mutex/thread.lock/types.fail.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/thread/thread.mutex/thread.lock/types.fail.cpp?rev=372782&r1=372781&r2=372782&view=diff
==============================================================================
--- libcxx/trunk/test/std/thread/thread.mutex/thread.lock/types.fail.cpp (original)
+++ libcxx/trunk/test/std/thread/thread.mutex/thread.lock/types.fail.cpp Tue Sep 24 15:13:17 2019
@@ -8,9 +8,12 @@
 //===----------------------------------------------------------------------===//
 
 // UNSUPPORTED: c++98, c++03
-
 // UNSUPPORTED: libcpp-has-no-threads
 
+// Before GCC 6, aggregate initialization kicks in.
+// See https://stackoverflow.com/q/41799015/627587.
+// UNSUPPORTED: gcc-4, gcc-5
+
 // <mutex>
 
 // struct defer_lock_t { explicit defer_lock_t() = default; };

Modified: libcxx/trunk/test/std/utilities/memory/allocator.tag/allocator_arg.fail.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/memory/allocator.tag/allocator_arg.fail.cpp?rev=372782&r1=372781&r2=372782&view=diff
==============================================================================
--- libcxx/trunk/test/std/utilities/memory/allocator.tag/allocator_arg.fail.cpp (original)
+++ libcxx/trunk/test/std/utilities/memory/allocator.tag/allocator_arg.fail.cpp Tue Sep 24 15:13:17 2019
@@ -8,6 +8,10 @@
 
 // UNSUPPORTED: c++98, c++03
 
+// Before GCC 6, aggregate initialization kicks in.
+// See https://stackoverflow.com/q/41799015/627587.
+// UNSUPPORTED: gcc-4, gcc-5
+
 // <memory>
 
 // struct allocator_arg_t { explicit allocator_arg_t() = default; };

Modified: libcxx/trunk/test/std/utilities/tuple/tuple.tuple/tuple.cnstr/default.fail.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/tuple/tuple.tuple/tuple.cnstr/default.fail.cpp?rev=372782&r1=372781&r2=372782&view=diff
==============================================================================
--- libcxx/trunk/test/std/utilities/tuple/tuple.tuple/tuple.cnstr/default.fail.cpp (original)
+++ libcxx/trunk/test/std/utilities/tuple/tuple.tuple/tuple.cnstr/default.fail.cpp Tue Sep 24 15:13:17 2019
@@ -8,6 +8,10 @@
 
 // UNSUPPORTED: c++98, c++03
 
+// Before GCC 6, aggregate initialization kicks in.
+// See https://stackoverflow.com/q/41799015/627587.
+// UNSUPPORTED: gcc-4, gcc-5
+
 // <tuple>
 
 // template <class... Types> class tuple;

Modified: libcxx/trunk/test/std/utilities/utility/pairs/pair.piecewise/piecewise_construct_t.fail.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/utility/pairs/pair.piecewise/piecewise_construct_t.fail.cpp?rev=372782&r1=372781&r2=372782&view=diff
==============================================================================
--- libcxx/trunk/test/std/utilities/utility/pairs/pair.piecewise/piecewise_construct_t.fail.cpp (original)
+++ libcxx/trunk/test/std/utilities/utility/pairs/pair.piecewise/piecewise_construct_t.fail.cpp Tue Sep 24 15:13:17 2019
@@ -8,6 +8,10 @@
 
 // UNSUPPORTED: c++98, c++03
 
+// Before GCC 6, aggregate initialization kicks in.
+// See https://stackoverflow.com/q/41799015/627587.
+// UNSUPPORTED: gcc-4, gcc-5
+
 // <utility>
 
 // struct piecewise_construct_t { explicit piecewise_construct_t() = default; };

Modified: libcxx/trunk/test/std/utilities/utility/pairs/pairs.pair/default.explicit.fail.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/utility/pairs/pairs.pair/default.explicit.fail.cpp?rev=372782&r1=372781&r2=372782&view=diff
==============================================================================
--- libcxx/trunk/test/std/utilities/utility/pairs/pairs.pair/default.explicit.fail.cpp (original)
+++ libcxx/trunk/test/std/utilities/utility/pairs/pairs.pair/default.explicit.fail.cpp Tue Sep 24 15:13:17 2019
@@ -8,6 +8,10 @@
 
 // UNSUPPORTED: c++98, c++03
 
+// Before GCC 6, aggregate initialization kicks in.
+// See https://stackoverflow.com/q/41799015/627587.
+// UNSUPPORTED: gcc-4, gcc-5
+
 // <utility>
 
 // template <class T1, class T2> struct pair




More information about the libcxx-commits mailing list