diff --git a/test/thread/futures/futures.overview/launch.pass.cpp b/test/thread/futures/futures.overview/launch.pass.cpp index 63eebe9f..f4c4ca11 100644 --- a/test/thread/futures/futures.overview/launch.pass.cpp +++ b/test/thread/futures/futures.overview/launch.pass.cpp @@ -20,7 +20,7 @@ int main() { - static_assert(std::launch::any == std::launch::async | std::launch::deferred, ""); + static_assert(std::launch::any == (std::launch::async | std::launch::deferred), ""); static_assert(std::launch::async == 1, ""); static_assert(std::launch::deferred == 2, ""); } diff --git a/test/thread/futures/futures.tas/futures.task.members/ctor_func.pass.cpp b/test/thread/futures/futures.tas/futures.task.members/ctor_func.pass.cpp index 8ae59216..7009f306 100644 --- a/test/thread/futures/futures.tas/futures.task.members/ctor_func.pass.cpp +++ b/test/thread/futures/futures.tas/futures.task.members/ctor_func.pass.cpp @@ -46,7 +46,7 @@ int main() assert(A::n_copies == 0); assert(A::n_moves > 0); } - A::n_copies == 0; + A::n_copies = 0; A::n_copies = 0; { A a(5); diff --git a/test/thread/futures/futures.tas/futures.task.members/ctor_func_alloc.pass.cpp b/test/thread/futures/futures.tas/futures.task.members/ctor_func_alloc.pass.cpp index 63042e8c..2e0cf5d7 100644 --- a/test/thread/futures/futures.tas/futures.task.members/ctor_func_alloc.pass.cpp +++ b/test/thread/futures/futures.tas/futures.task.members/ctor_func_alloc.pass.cpp @@ -51,7 +51,7 @@ int main() assert(A::n_moves > 0); } assert(test_alloc_base::count == 0); - A::n_copies == 0; + A::n_copies = 0; A::n_copies = 0; { A a(5); diff --git a/test/utilities/template.bitset/bitset.cons/char_ptr_ctor.pass.cpp b/test/utilities/template.bitset/bitset.cons/char_ptr_ctor.pass.cpp index 247e15c7..7fe78bad 100644 --- a/test/utilities/template.bitset/bitset.cons/char_ptr_ctor.pass.cpp +++ b/test/utilities/template.bitset/bitset.cons/char_ptr_ctor.pass.cpp @@ -15,6 +15,8 @@ #include #include +#pragma clang diagnostic ignored "-Wtautological-compare" + template void test_char_pointer_ctor() { diff --git a/test/utilities/template.bitset/bitset.cons/default.pass.cpp b/test/utilities/template.bitset/bitset.cons/default.pass.cpp index 400bc3d3..5d743c6b 100644 --- a/test/utilities/template.bitset/bitset.cons/default.pass.cpp +++ b/test/utilities/template.bitset/bitset.cons/default.pass.cpp @@ -12,6 +12,8 @@ #include #include +#pragma clang diagnostic ignored "-Wtautological-compare" + template void test_default_ctor() { diff --git a/test/utilities/template.bitset/bitset.cons/string_ctor.pass.cpp b/test/utilities/template.bitset/bitset.cons/string_ctor.pass.cpp index 9a7de39f..bcee50c4 100644 --- a/test/utilities/template.bitset/bitset.cons/string_ctor.pass.cpp +++ b/test/utilities/template.bitset/bitset.cons/string_ctor.pass.cpp @@ -12,6 +12,8 @@ #include #include +#pragma clang diagnostic ignored "-Wtautological-compare" + template void test_string_ctor() { diff --git a/test/utilities/template.bitset/bitset.cons/ull_ctor.pass.cpp b/test/utilities/template.bitset/bitset.cons/ull_ctor.pass.cpp index 5f4a7634..c849937d 100644 --- a/test/utilities/template.bitset/bitset.cons/ull_ctor.pass.cpp +++ b/test/utilities/template.bitset/bitset.cons/ull_ctor.pass.cpp @@ -12,6 +12,8 @@ #include #include +#pragma clang diagnostic ignored "-Wtautological-compare" + template void test_val_ctor() { diff --git a/test/utilities/template.bitset/bitset.members/count.pass.cpp b/test/utilities/template.bitset/bitset.members/count.pass.cpp index 1781e9b7..fb9ce642 100644 --- a/test/utilities/template.bitset/bitset.members/count.pass.cpp +++ b/test/utilities/template.bitset/bitset.members/count.pass.cpp @@ -13,6 +13,8 @@ #include #include +#pragma clang diagnostic ignored "-Wtautological-compare" + template std::bitset make_bitset() diff --git a/test/utilities/template.bitset/bitset.members/flip_all.pass.cpp b/test/utilities/template.bitset/bitset.members/flip_all.pass.cpp index 950a06a6..6c4f5c69 100644 --- a/test/utilities/template.bitset/bitset.members/flip_all.pass.cpp +++ b/test/utilities/template.bitset/bitset.members/flip_all.pass.cpp @@ -13,6 +13,8 @@ #include #include +#pragma clang diagnostic ignored "-Wtautological-compare" + template std::bitset make_bitset() diff --git a/test/utilities/template.bitset/bitset.members/flip_one.pass.cpp b/test/utilities/template.bitset/bitset.members/flip_one.pass.cpp index 7889dc76..3e09b202 100644 --- a/test/utilities/template.bitset/bitset.members/flip_one.pass.cpp +++ b/test/utilities/template.bitset/bitset.members/flip_one.pass.cpp @@ -13,6 +13,8 @@ #include #include +#pragma clang diagnostic ignored "-Wtautological-compare" + template std::bitset make_bitset() diff --git a/test/utilities/template.bitset/bitset.members/index.pass.cpp b/test/utilities/template.bitset/bitset.members/index.pass.cpp index cc0e0fdc..b96aaa51 100644 --- a/test/utilities/template.bitset/bitset.members/index.pass.cpp +++ b/test/utilities/template.bitset/bitset.members/index.pass.cpp @@ -13,6 +13,8 @@ #include #include +#pragma clang diagnostic ignored "-Wtautological-compare" + template std::bitset make_bitset() diff --git a/test/utilities/template.bitset/bitset.members/index_const.pass.cpp b/test/utilities/template.bitset/bitset.members/index_const.pass.cpp index c0bb4713..e3c28c69 100644 --- a/test/utilities/template.bitset/bitset.members/index_const.pass.cpp +++ b/test/utilities/template.bitset/bitset.members/index_const.pass.cpp @@ -13,6 +13,8 @@ #include #include +#pragma clang diagnostic ignored "-Wtautological-compare" + template std::bitset make_bitset() diff --git a/test/utilities/template.bitset/bitset.members/left_shift.pass.cpp b/test/utilities/template.bitset/bitset.members/left_shift.pass.cpp index 35622601..7fe9fa72 100644 --- a/test/utilities/template.bitset/bitset.members/left_shift.pass.cpp +++ b/test/utilities/template.bitset/bitset.members/left_shift.pass.cpp @@ -13,6 +13,8 @@ #include #include +#pragma clang diagnostic ignored "-Wtautological-compare" + template std::bitset make_bitset() diff --git a/test/utilities/template.bitset/bitset.members/left_shift_eq.pass.cpp b/test/utilities/template.bitset/bitset.members/left_shift_eq.pass.cpp index ddda8bea..bed3e28e 100644 --- a/test/utilities/template.bitset/bitset.members/left_shift_eq.pass.cpp +++ b/test/utilities/template.bitset/bitset.members/left_shift_eq.pass.cpp @@ -13,6 +13,8 @@ #include #include +#pragma clang diagnostic ignored "-Wtautological-compare" + template std::bitset make_bitset() diff --git a/test/utilities/template.bitset/bitset.members/not_all.pass.cpp b/test/utilities/template.bitset/bitset.members/not_all.pass.cpp index 026ed560..2f8f7111 100644 --- a/test/utilities/template.bitset/bitset.members/not_all.pass.cpp +++ b/test/utilities/template.bitset/bitset.members/not_all.pass.cpp @@ -13,6 +13,8 @@ #include #include +#pragma clang diagnostic ignored "-Wtautological-compare" + template std::bitset make_bitset() diff --git a/test/utilities/template.bitset/bitset.members/op_and_eq.pass.cpp b/test/utilities/template.bitset/bitset.members/op_and_eq.pass.cpp index 6ef865b7..b599ec39 100644 --- a/test/utilities/template.bitset/bitset.members/op_and_eq.pass.cpp +++ b/test/utilities/template.bitset/bitset.members/op_and_eq.pass.cpp @@ -13,6 +13,8 @@ #include #include +#pragma clang diagnostic ignored "-Wtautological-compare" + template std::bitset make_bitset() diff --git a/test/utilities/template.bitset/bitset.members/op_eq_eq.pass.cpp b/test/utilities/template.bitset/bitset.members/op_eq_eq.pass.cpp index c009da46..5f6cf3d0 100644 --- a/test/utilities/template.bitset/bitset.members/op_eq_eq.pass.cpp +++ b/test/utilities/template.bitset/bitset.members/op_eq_eq.pass.cpp @@ -16,6 +16,8 @@ #include #include +#pragma clang diagnostic ignored "-Wtautological-compare" + template std::bitset make_bitset() diff --git a/test/utilities/template.bitset/bitset.members/op_or_eq.pass.cpp b/test/utilities/template.bitset/bitset.members/op_or_eq.pass.cpp index c5c946c4..6e638798 100644 --- a/test/utilities/template.bitset/bitset.members/op_or_eq.pass.cpp +++ b/test/utilities/template.bitset/bitset.members/op_or_eq.pass.cpp @@ -13,6 +13,8 @@ #include #include +#pragma clang diagnostic ignored "-Wtautological-compare" + template std::bitset make_bitset() diff --git a/test/utilities/template.bitset/bitset.members/op_xor_eq.pass.cpp b/test/utilities/template.bitset/bitset.members/op_xor_eq.pass.cpp index d1b920a5..e68a641c 100644 --- a/test/utilities/template.bitset/bitset.members/op_xor_eq.pass.cpp +++ b/test/utilities/template.bitset/bitset.members/op_xor_eq.pass.cpp @@ -13,6 +13,8 @@ #include #include +#pragma clang diagnostic ignored "-Wtautological-compare" + template std::bitset make_bitset() diff --git a/test/utilities/template.bitset/bitset.members/reset_all.pass.cpp b/test/utilities/template.bitset/bitset.members/reset_all.pass.cpp index 611b111f..ee44d92c 100644 --- a/test/utilities/template.bitset/bitset.members/reset_all.pass.cpp +++ b/test/utilities/template.bitset/bitset.members/reset_all.pass.cpp @@ -12,6 +12,8 @@ #include #include +#pragma clang diagnostic ignored "-Wtautological-compare" + template void test_reset_all() { diff --git a/test/utilities/template.bitset/bitset.members/right_shift.pass.cpp b/test/utilities/template.bitset/bitset.members/right_shift.pass.cpp index 315a7bff..87fcc281 100644 --- a/test/utilities/template.bitset/bitset.members/right_shift.pass.cpp +++ b/test/utilities/template.bitset/bitset.members/right_shift.pass.cpp @@ -13,6 +13,8 @@ #include #include +#pragma clang diagnostic ignored "-Wtautological-compare" + template std::bitset make_bitset() diff --git a/test/utilities/template.bitset/bitset.members/right_shift_eq.pass.cpp b/test/utilities/template.bitset/bitset.members/right_shift_eq.pass.cpp index c04b7591..1dd89c18 100644 --- a/test/utilities/template.bitset/bitset.members/right_shift_eq.pass.cpp +++ b/test/utilities/template.bitset/bitset.members/right_shift_eq.pass.cpp @@ -13,6 +13,8 @@ #include #include +#pragma clang diagnostic ignored "-Wtautological-compare" + template std::bitset make_bitset() diff --git a/test/utilities/template.bitset/bitset.members/set_all.pass.cpp b/test/utilities/template.bitset/bitset.members/set_all.pass.cpp index 007c7c08..56454a84 100644 --- a/test/utilities/template.bitset/bitset.members/set_all.pass.cpp +++ b/test/utilities/template.bitset/bitset.members/set_all.pass.cpp @@ -12,6 +12,8 @@ #include #include +#pragma clang diagnostic ignored "-Wtautological-compare" + template void test_set_all() { diff --git a/test/utilities/template.bitset/bitset.members/test.pass.cpp b/test/utilities/template.bitset/bitset.members/test.pass.cpp index 2620c2da..5102b461 100644 --- a/test/utilities/template.bitset/bitset.members/test.pass.cpp +++ b/test/utilities/template.bitset/bitset.members/test.pass.cpp @@ -13,6 +13,8 @@ #include #include +#pragma clang diagnostic ignored "-Wtautological-compare" + template std::bitset make_bitset() diff --git a/test/utilities/template.bitset/bitset.members/to_string.pass.cpp b/test/utilities/template.bitset/bitset.members/to_string.pass.cpp index a4fc38bd..b6579409 100644 --- a/test/utilities/template.bitset/bitset.members/to_string.pass.cpp +++ b/test/utilities/template.bitset/bitset.members/to_string.pass.cpp @@ -26,6 +26,8 @@ #include #include +#pragma clang diagnostic ignored "-Wtautological-compare" + template std::bitset make_bitset() diff --git a/test/utilities/template.bitset/bitset.operators/op_and.pass.cpp b/test/utilities/template.bitset/bitset.operators/op_and.pass.cpp index 73f0f2ae..751cee69 100644 --- a/test/utilities/template.bitset/bitset.operators/op_and.pass.cpp +++ b/test/utilities/template.bitset/bitset.operators/op_and.pass.cpp @@ -13,6 +13,8 @@ #include #include +#pragma clang diagnostic ignored "-Wtautological-compare" + template std::bitset make_bitset() diff --git a/test/utilities/template.bitset/bitset.operators/op_not.pass.cpp b/test/utilities/template.bitset/bitset.operators/op_not.pass.cpp index 3e6133d6..fda5e5cd 100644 --- a/test/utilities/template.bitset/bitset.operators/op_not.pass.cpp +++ b/test/utilities/template.bitset/bitset.operators/op_not.pass.cpp @@ -13,6 +13,8 @@ #include #include +#pragma clang diagnostic ignored "-Wtautological-compare" + template std::bitset make_bitset() diff --git a/test/utilities/template.bitset/bitset.operators/op_or.pass.cpp b/test/utilities/template.bitset/bitset.operators/op_or.pass.cpp index 09d170c6..067f8682 100644 --- a/test/utilities/template.bitset/bitset.operators/op_or.pass.cpp +++ b/test/utilities/template.bitset/bitset.operators/op_or.pass.cpp @@ -13,6 +13,8 @@ #include #include +#pragma clang diagnostic ignored "-Wtautological-compare" + template std::bitset make_bitset() diff --git a/test/utilities/utility/forward/move_only.pass.cpp b/test/utilities/utility/forward/move_only.pass.cpp index 2eb023d4..0588c110 100644 --- a/test/utilities/utility/forward/move_only.pass.cpp +++ b/test/utilities/utility/forward/move_only.pass.cpp @@ -26,7 +26,7 @@ public: #ifndef _LIBCPP_HAS_NO_RVALUE_REFERENCES move_only(move_only&&) {} - move_only& operator=(move_only&&) {} + move_only& operator=(move_only&&) {return *this;} #else // _LIBCPP_HAS_NO_RVALUE_REFERENCES operator std::__rv () {return std::__rv(*this);} move_only(std::__rv) {}