From 0b9547ddadbad959d03f0d13b0450c4f0be8de77 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Tue, 20 Jun 2017 06:25:27 +0300 Subject: [PATCH] Disable atomic_sp_constexpr_test on libc++ --- test/atomic_sp_constexpr_test.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/atomic_sp_constexpr_test.cpp b/test/atomic_sp_constexpr_test.cpp index 2661d60..d81822d 100644 --- a/test/atomic_sp_constexpr_test.cpp +++ b/test/atomic_sp_constexpr_test.cpp @@ -25,6 +25,11 @@ # undef HAVE_CONSTEXPR_INIT #endif +#if defined( _LIBCPP_VERSION ) && ( _LIBCPP_VERSION < 5000 ) +// in libc++, atomic_flag has a non-constexpr constructor from bool +# undef HAVE_CONSTEXPR_INIT +#endif + #if !defined( HAVE_CONSTEXPR_INIT ) || defined( BOOST_NO_CXX11_UNIFIED_INITIALIZATION_SYNTAX ) int main()