Author: hhinnant Date: Tue May 17 14:12:55 2011 New Revision: 131479 URL: http://llvm.org/viewvc/llvm-project?rev=131479&view=rev Log: Clean up a bunch of warnings in the tests, 3 of which actually turned out to be test bugs.
Modified: libcxx/trunk/test/thread/futures/futures.overview/launch.pass.cpp libcxx/trunk/test/thread/futures/futures.tas/futures.task.members/ctor_func.pass.cpp libcxx/trunk/test/thread/futures/futures.tas/futures.task.members/ctor_func_alloc.pass.cpp libcxx/trunk/test/utilities/template.bitset/bitset.cons/char_ptr_ctor.pass.cpp libcxx/trunk/test/utilities/template.bitset/bitset.cons/default.pass.cpp libcxx/trunk/test/utilities/template.bitset/bitset.cons/string_ctor.pass.cpp libcxx/trunk/test/utilities/template.bitset/bitset.cons/ull_ctor.pass.cpp libcxx/trunk/test/utilities/template.bitset/bitset.members/count.pass.cpp libcxx/trunk/test/utilities/template.bitset/bitset.members/flip_all.pass.cpp libcxx/trunk/test/utilities/template.bitset/bitset.members/flip_one.pass.cpp libcxx/trunk/test/utilities/template.bitset/bitset.members/index.pass.cpp libcxx/trunk/test/utilities/template.bitset/bitset.members/index_const.pass.cpp libcxx/trunk/test/utilities/template.bitset/bitset.members/left_shift.pass.cpp libcxx/trunk/test/utilities/template.bitset/bitset.members/left_shift_eq.pass.cpp libcxx/trunk/test/utilities/template.bitset/bitset.members/not_all.pass.cpp libcxx/trunk/test/utilities/template.bitset/bitset.members/op_and_eq.pass.cpp libcxx/trunk/test/utilities/template.bitset/bitset.members/op_eq_eq.pass.cpp libcxx/trunk/test/utilities/template.bitset/bitset.members/op_or_eq.pass.cpp libcxx/trunk/test/utilities/template.bitset/bitset.members/op_xor_eq.pass.cpp libcxx/trunk/test/utilities/template.bitset/bitset.members/reset_all.pass.cpp libcxx/trunk/test/utilities/template.bitset/bitset.members/right_shift.pass.cpp libcxx/trunk/test/utilities/template.bitset/bitset.members/right_shift_eq.pass.cpp libcxx/trunk/test/utilities/template.bitset/bitset.members/set_all.pass.cpp libcxx/trunk/test/utilities/template.bitset/bitset.members/test.pass.cpp libcxx/trunk/test/utilities/template.bitset/bitset.members/to_string.pass.cpp libcxx/trunk/test/utilities/template.bitset/bitset.operators/op_and.pass.cpp libcxx/trunk/test/utilities/template.bitset/bitset.operators/op_not.pass.cpp libcxx/trunk/test/utilities/template.bitset/bitset.operators/op_or.pass.cpp libcxx/trunk/test/utilities/utility/forward/move_only.pass.cpp Modified: libcxx/trunk/test/thread/futures/futures.overview/launch.pass.cpp URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/thread/futures/futures.overview/launch.pass.cpp?rev=131479&r1=131478&r2=131479&view=diff ============================================================================== --- libcxx/trunk/test/thread/futures/futures.overview/launch.pass.cpp (original) +++ libcxx/trunk/test/thread/futures/futures.overview/launch.pass.cpp Tue May 17 14:12:55 2011 @@ -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, ""); } Modified: libcxx/trunk/test/thread/futures/futures.tas/futures.task.members/ctor_func.pass.cpp URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/thread/futures/futures.tas/futures.task.members/ctor_func.pass.cpp?rev=131479&r1=131478&r2=131479&view=diff ============================================================================== --- libcxx/trunk/test/thread/futures/futures.tas/futures.task.members/ctor_func.pass.cpp (original) +++ libcxx/trunk/test/thread/futures/futures.tas/futures.task.members/ctor_func.pass.cpp Tue May 17 14:12:55 2011 @@ -46,7 +46,7 @@ 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); Modified: libcxx/trunk/test/thread/futures/futures.tas/futures.task.members/ctor_func_alloc.pass.cpp URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/thread/futures/futures.tas/futures.task.members/ctor_func_alloc.pass.cpp?rev=131479&r1=131478&r2=131479&view=diff ============================================================================== --- libcxx/trunk/test/thread/futures/futures.tas/futures.task.members/ctor_func_alloc.pass.cpp (original) +++ libcxx/trunk/test/thread/futures/futures.tas/futures.task.members/ctor_func_alloc.pass.cpp Tue May 17 14:12:55 2011 @@ -51,7 +51,7 @@ 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); Modified: libcxx/trunk/test/utilities/template.bitset/bitset.cons/char_ptr_ctor.pass.cpp URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/utilities/template.bitset/bitset.cons/char_ptr_ctor.pass.cpp?rev=131479&r1=131478&r2=131479&view=diff ============================================================================== --- libcxx/trunk/test/utilities/template.bitset/bitset.cons/char_ptr_ctor.pass.cpp (original) +++ libcxx/trunk/test/utilities/template.bitset/bitset.cons/char_ptr_ctor.pass.cpp Tue May 17 14:12:55 2011 @@ -15,6 +15,8 @@ #include <bitset> #include <cassert> +#pragma clang diagnostic ignored "-Wtautological-compare" + template <std::size_t N> void test_char_pointer_ctor() { Modified: libcxx/trunk/test/utilities/template.bitset/bitset.cons/default.pass.cpp URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/utilities/template.bitset/bitset.cons/default.pass.cpp?rev=131479&r1=131478&r2=131479&view=diff ============================================================================== --- libcxx/trunk/test/utilities/template.bitset/bitset.cons/default.pass.cpp (original) +++ libcxx/trunk/test/utilities/template.bitset/bitset.cons/default.pass.cpp Tue May 17 14:12:55 2011 @@ -12,6 +12,8 @@ #include <bitset> #include <cassert> +#pragma clang diagnostic ignored "-Wtautological-compare" + template <std::size_t N> void test_default_ctor() { Modified: libcxx/trunk/test/utilities/template.bitset/bitset.cons/string_ctor.pass.cpp URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/utilities/template.bitset/bitset.cons/string_ctor.pass.cpp?rev=131479&r1=131478&r2=131479&view=diff ============================================================================== --- libcxx/trunk/test/utilities/template.bitset/bitset.cons/string_ctor.pass.cpp (original) +++ libcxx/trunk/test/utilities/template.bitset/bitset.cons/string_ctor.pass.cpp Tue May 17 14:12:55 2011 @@ -12,6 +12,8 @@ #include <bitset> #include <cassert> +#pragma clang diagnostic ignored "-Wtautological-compare" + template <std::size_t N> void test_string_ctor() { Modified: libcxx/trunk/test/utilities/template.bitset/bitset.cons/ull_ctor.pass.cpp URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/utilities/template.bitset/bitset.cons/ull_ctor.pass.cpp?rev=131479&r1=131478&r2=131479&view=diff ============================================================================== --- libcxx/trunk/test/utilities/template.bitset/bitset.cons/ull_ctor.pass.cpp (original) +++ libcxx/trunk/test/utilities/template.bitset/bitset.cons/ull_ctor.pass.cpp Tue May 17 14:12:55 2011 @@ -12,6 +12,8 @@ #include <bitset> #include <cassert> +#pragma clang diagnostic ignored "-Wtautological-compare" + template <std::size_t N> void test_val_ctor() { Modified: libcxx/trunk/test/utilities/template.bitset/bitset.members/count.pass.cpp URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/utilities/template.bitset/bitset.members/count.pass.cpp?rev=131479&r1=131478&r2=131479&view=diff ============================================================================== --- libcxx/trunk/test/utilities/template.bitset/bitset.members/count.pass.cpp (original) +++ libcxx/trunk/test/utilities/template.bitset/bitset.members/count.pass.cpp Tue May 17 14:12:55 2011 @@ -13,6 +13,8 @@ #include <cstdlib> #include <cassert> +#pragma clang diagnostic ignored "-Wtautological-compare" + template <std::size_t N> std::bitset<N> make_bitset() Modified: libcxx/trunk/test/utilities/template.bitset/bitset.members/flip_all.pass.cpp URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/utilities/template.bitset/bitset.members/flip_all.pass.cpp?rev=131479&r1=131478&r2=131479&view=diff ============================================================================== --- libcxx/trunk/test/utilities/template.bitset/bitset.members/flip_all.pass.cpp (original) +++ libcxx/trunk/test/utilities/template.bitset/bitset.members/flip_all.pass.cpp Tue May 17 14:12:55 2011 @@ -13,6 +13,8 @@ #include <cstdlib> #include <cassert> +#pragma clang diagnostic ignored "-Wtautological-compare" + template <std::size_t N> std::bitset<N> make_bitset() Modified: libcxx/trunk/test/utilities/template.bitset/bitset.members/flip_one.pass.cpp URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/utilities/template.bitset/bitset.members/flip_one.pass.cpp?rev=131479&r1=131478&r2=131479&view=diff ============================================================================== --- libcxx/trunk/test/utilities/template.bitset/bitset.members/flip_one.pass.cpp (original) +++ libcxx/trunk/test/utilities/template.bitset/bitset.members/flip_one.pass.cpp Tue May 17 14:12:55 2011 @@ -13,6 +13,8 @@ #include <cstdlib> #include <cassert> +#pragma clang diagnostic ignored "-Wtautological-compare" + template <std::size_t N> std::bitset<N> make_bitset() Modified: libcxx/trunk/test/utilities/template.bitset/bitset.members/index.pass.cpp URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/utilities/template.bitset/bitset.members/index.pass.cpp?rev=131479&r1=131478&r2=131479&view=diff ============================================================================== --- libcxx/trunk/test/utilities/template.bitset/bitset.members/index.pass.cpp (original) +++ libcxx/trunk/test/utilities/template.bitset/bitset.members/index.pass.cpp Tue May 17 14:12:55 2011 @@ -13,6 +13,8 @@ #include <cstdlib> #include <cassert> +#pragma clang diagnostic ignored "-Wtautological-compare" + template <std::size_t N> std::bitset<N> make_bitset() Modified: libcxx/trunk/test/utilities/template.bitset/bitset.members/index_const.pass.cpp URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/utilities/template.bitset/bitset.members/index_const.pass.cpp?rev=131479&r1=131478&r2=131479&view=diff ============================================================================== --- libcxx/trunk/test/utilities/template.bitset/bitset.members/index_const.pass.cpp (original) +++ libcxx/trunk/test/utilities/template.bitset/bitset.members/index_const.pass.cpp Tue May 17 14:12:55 2011 @@ -13,6 +13,8 @@ #include <cstdlib> #include <cassert> +#pragma clang diagnostic ignored "-Wtautological-compare" + template <std::size_t N> std::bitset<N> make_bitset() Modified: libcxx/trunk/test/utilities/template.bitset/bitset.members/left_shift.pass.cpp URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/utilities/template.bitset/bitset.members/left_shift.pass.cpp?rev=131479&r1=131478&r2=131479&view=diff ============================================================================== --- libcxx/trunk/test/utilities/template.bitset/bitset.members/left_shift.pass.cpp (original) +++ libcxx/trunk/test/utilities/template.bitset/bitset.members/left_shift.pass.cpp Tue May 17 14:12:55 2011 @@ -13,6 +13,8 @@ #include <cstdlib> #include <cassert> +#pragma clang diagnostic ignored "-Wtautological-compare" + template <std::size_t N> std::bitset<N> make_bitset() Modified: libcxx/trunk/test/utilities/template.bitset/bitset.members/left_shift_eq.pass.cpp URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/utilities/template.bitset/bitset.members/left_shift_eq.pass.cpp?rev=131479&r1=131478&r2=131479&view=diff ============================================================================== --- libcxx/trunk/test/utilities/template.bitset/bitset.members/left_shift_eq.pass.cpp (original) +++ libcxx/trunk/test/utilities/template.bitset/bitset.members/left_shift_eq.pass.cpp Tue May 17 14:12:55 2011 @@ -13,6 +13,8 @@ #include <cstdlib> #include <cassert> +#pragma clang diagnostic ignored "-Wtautological-compare" + template <std::size_t N> std::bitset<N> make_bitset() Modified: libcxx/trunk/test/utilities/template.bitset/bitset.members/not_all.pass.cpp URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/utilities/template.bitset/bitset.members/not_all.pass.cpp?rev=131479&r1=131478&r2=131479&view=diff ============================================================================== --- libcxx/trunk/test/utilities/template.bitset/bitset.members/not_all.pass.cpp (original) +++ libcxx/trunk/test/utilities/template.bitset/bitset.members/not_all.pass.cpp Tue May 17 14:12:55 2011 @@ -13,6 +13,8 @@ #include <cstdlib> #include <cassert> +#pragma clang diagnostic ignored "-Wtautological-compare" + template <std::size_t N> std::bitset<N> make_bitset() Modified: libcxx/trunk/test/utilities/template.bitset/bitset.members/op_and_eq.pass.cpp URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/utilities/template.bitset/bitset.members/op_and_eq.pass.cpp?rev=131479&r1=131478&r2=131479&view=diff ============================================================================== --- libcxx/trunk/test/utilities/template.bitset/bitset.members/op_and_eq.pass.cpp (original) +++ libcxx/trunk/test/utilities/template.bitset/bitset.members/op_and_eq.pass.cpp Tue May 17 14:12:55 2011 @@ -13,6 +13,8 @@ #include <cstdlib> #include <cassert> +#pragma clang diagnostic ignored "-Wtautological-compare" + template <std::size_t N> std::bitset<N> make_bitset() Modified: libcxx/trunk/test/utilities/template.bitset/bitset.members/op_eq_eq.pass.cpp URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/utilities/template.bitset/bitset.members/op_eq_eq.pass.cpp?rev=131479&r1=131478&r2=131479&view=diff ============================================================================== --- libcxx/trunk/test/utilities/template.bitset/bitset.members/op_eq_eq.pass.cpp (original) +++ libcxx/trunk/test/utilities/template.bitset/bitset.members/op_eq_eq.pass.cpp Tue May 17 14:12:55 2011 @@ -16,6 +16,8 @@ #include <cstdlib> #include <cassert> +#pragma clang diagnostic ignored "-Wtautological-compare" + template <std::size_t N> std::bitset<N> make_bitset() Modified: libcxx/trunk/test/utilities/template.bitset/bitset.members/op_or_eq.pass.cpp URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/utilities/template.bitset/bitset.members/op_or_eq.pass.cpp?rev=131479&r1=131478&r2=131479&view=diff ============================================================================== --- libcxx/trunk/test/utilities/template.bitset/bitset.members/op_or_eq.pass.cpp (original) +++ libcxx/trunk/test/utilities/template.bitset/bitset.members/op_or_eq.pass.cpp Tue May 17 14:12:55 2011 @@ -13,6 +13,8 @@ #include <cstdlib> #include <cassert> +#pragma clang diagnostic ignored "-Wtautological-compare" + template <std::size_t N> std::bitset<N> make_bitset() Modified: libcxx/trunk/test/utilities/template.bitset/bitset.members/op_xor_eq.pass.cpp URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/utilities/template.bitset/bitset.members/op_xor_eq.pass.cpp?rev=131479&r1=131478&r2=131479&view=diff ============================================================================== --- libcxx/trunk/test/utilities/template.bitset/bitset.members/op_xor_eq.pass.cpp (original) +++ libcxx/trunk/test/utilities/template.bitset/bitset.members/op_xor_eq.pass.cpp Tue May 17 14:12:55 2011 @@ -13,6 +13,8 @@ #include <cstdlib> #include <cassert> +#pragma clang diagnostic ignored "-Wtautological-compare" + template <std::size_t N> std::bitset<N> make_bitset() Modified: libcxx/trunk/test/utilities/template.bitset/bitset.members/reset_all.pass.cpp URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/utilities/template.bitset/bitset.members/reset_all.pass.cpp?rev=131479&r1=131478&r2=131479&view=diff ============================================================================== --- libcxx/trunk/test/utilities/template.bitset/bitset.members/reset_all.pass.cpp (original) +++ libcxx/trunk/test/utilities/template.bitset/bitset.members/reset_all.pass.cpp Tue May 17 14:12:55 2011 @@ -12,6 +12,8 @@ #include <bitset> #include <cassert> +#pragma clang diagnostic ignored "-Wtautological-compare" + template <std::size_t N> void test_reset_all() { Modified: libcxx/trunk/test/utilities/template.bitset/bitset.members/right_shift.pass.cpp URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/utilities/template.bitset/bitset.members/right_shift.pass.cpp?rev=131479&r1=131478&r2=131479&view=diff ============================================================================== --- libcxx/trunk/test/utilities/template.bitset/bitset.members/right_shift.pass.cpp (original) +++ libcxx/trunk/test/utilities/template.bitset/bitset.members/right_shift.pass.cpp Tue May 17 14:12:55 2011 @@ -13,6 +13,8 @@ #include <cstdlib> #include <cassert> +#pragma clang diagnostic ignored "-Wtautological-compare" + template <std::size_t N> std::bitset<N> make_bitset() Modified: libcxx/trunk/test/utilities/template.bitset/bitset.members/right_shift_eq.pass.cpp URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/utilities/template.bitset/bitset.members/right_shift_eq.pass.cpp?rev=131479&r1=131478&r2=131479&view=diff ============================================================================== --- libcxx/trunk/test/utilities/template.bitset/bitset.members/right_shift_eq.pass.cpp (original) +++ libcxx/trunk/test/utilities/template.bitset/bitset.members/right_shift_eq.pass.cpp Tue May 17 14:12:55 2011 @@ -13,6 +13,8 @@ #include <cstdlib> #include <cassert> +#pragma clang diagnostic ignored "-Wtautological-compare" + template <std::size_t N> std::bitset<N> make_bitset() Modified: libcxx/trunk/test/utilities/template.bitset/bitset.members/set_all.pass.cpp URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/utilities/template.bitset/bitset.members/set_all.pass.cpp?rev=131479&r1=131478&r2=131479&view=diff ============================================================================== --- libcxx/trunk/test/utilities/template.bitset/bitset.members/set_all.pass.cpp (original) +++ libcxx/trunk/test/utilities/template.bitset/bitset.members/set_all.pass.cpp Tue May 17 14:12:55 2011 @@ -12,6 +12,8 @@ #include <bitset> #include <cassert> +#pragma clang diagnostic ignored "-Wtautological-compare" + template <std::size_t N> void test_set_all() { Modified: libcxx/trunk/test/utilities/template.bitset/bitset.members/test.pass.cpp URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/utilities/template.bitset/bitset.members/test.pass.cpp?rev=131479&r1=131478&r2=131479&view=diff ============================================================================== --- libcxx/trunk/test/utilities/template.bitset/bitset.members/test.pass.cpp (original) +++ libcxx/trunk/test/utilities/template.bitset/bitset.members/test.pass.cpp Tue May 17 14:12:55 2011 @@ -13,6 +13,8 @@ #include <cstdlib> #include <cassert> +#pragma clang diagnostic ignored "-Wtautological-compare" + template <std::size_t N> std::bitset<N> make_bitset() Modified: libcxx/trunk/test/utilities/template.bitset/bitset.members/to_string.pass.cpp URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/utilities/template.bitset/bitset.members/to_string.pass.cpp?rev=131479&r1=131478&r2=131479&view=diff ============================================================================== --- libcxx/trunk/test/utilities/template.bitset/bitset.members/to_string.pass.cpp (original) +++ libcxx/trunk/test/utilities/template.bitset/bitset.members/to_string.pass.cpp Tue May 17 14:12:55 2011 @@ -26,6 +26,8 @@ #include <cstdlib> #include <cassert> +#pragma clang diagnostic ignored "-Wtautological-compare" + template <std::size_t N> std::bitset<N> make_bitset() Modified: libcxx/trunk/test/utilities/template.bitset/bitset.operators/op_and.pass.cpp URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/utilities/template.bitset/bitset.operators/op_and.pass.cpp?rev=131479&r1=131478&r2=131479&view=diff ============================================================================== --- libcxx/trunk/test/utilities/template.bitset/bitset.operators/op_and.pass.cpp (original) +++ libcxx/trunk/test/utilities/template.bitset/bitset.operators/op_and.pass.cpp Tue May 17 14:12:55 2011 @@ -13,6 +13,8 @@ #include <cstdlib> #include <cassert> +#pragma clang diagnostic ignored "-Wtautological-compare" + template <std::size_t N> std::bitset<N> make_bitset() Modified: libcxx/trunk/test/utilities/template.bitset/bitset.operators/op_not.pass.cpp URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/utilities/template.bitset/bitset.operators/op_not.pass.cpp?rev=131479&r1=131478&r2=131479&view=diff ============================================================================== --- libcxx/trunk/test/utilities/template.bitset/bitset.operators/op_not.pass.cpp (original) +++ libcxx/trunk/test/utilities/template.bitset/bitset.operators/op_not.pass.cpp Tue May 17 14:12:55 2011 @@ -13,6 +13,8 @@ #include <cstdlib> #include <cassert> +#pragma clang diagnostic ignored "-Wtautological-compare" + template <std::size_t N> std::bitset<N> make_bitset() Modified: libcxx/trunk/test/utilities/template.bitset/bitset.operators/op_or.pass.cpp URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/utilities/template.bitset/bitset.operators/op_or.pass.cpp?rev=131479&r1=131478&r2=131479&view=diff ============================================================================== --- libcxx/trunk/test/utilities/template.bitset/bitset.operators/op_or.pass.cpp (original) +++ libcxx/trunk/test/utilities/template.bitset/bitset.operators/op_or.pass.cpp Tue May 17 14:12:55 2011 @@ -13,6 +13,8 @@ #include <cstdlib> #include <cassert> +#pragma clang diagnostic ignored "-Wtautological-compare" + template <std::size_t N> std::bitset<N> make_bitset() Modified: libcxx/trunk/test/utilities/utility/forward/move_only.pass.cpp URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/utilities/utility/forward/move_only.pass.cpp?rev=131479&r1=131478&r2=131479&view=diff ============================================================================== --- libcxx/trunk/test/utilities/utility/forward/move_only.pass.cpp (original) +++ libcxx/trunk/test/utilities/utility/forward/move_only.pass.cpp Tue May 17 14:12:55 2011 @@ -26,7 +26,7 @@ #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<move_only> () {return std::__rv<move_only>(*this);} move_only(std::__rv<move_only>) {} _______________________________________________ cfe-commits mailing list cfe-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits