diff --git a/test/utilities/allocator.adaptor/scoped.adaptor.operators/eq.pass.cpp b/test/utilities/allocator.adaptor/scoped.adaptor.operators/eq.pass.cpp new file mode 100644 index 00000000..917c9fac --- /dev/null +++ b/test/utilities/allocator.adaptor/scoped.adaptor.operators/eq.pass.cpp @@ -0,0 +1,64 @@ +//===----------------------------------------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under the MIT and the University of Illinois Open +// Source Licenses. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +// + +// template +// class scoped_allocator_adaptor + +// template +// bool +// operator==(const scoped_allocator_adaptor& a, +// const scoped_allocator_adaptor& b); +// +// template +// bool +// operator!=(const scoped_allocator_adaptor& a, +// const scoped_allocator_adaptor& b); + +#include +#include + +#include "../allocators.h" + +int main() +{ +#ifndef _LIBCPP_HAS_NO_RVALUE_REFERENCES + + { + typedef std::scoped_allocator_adaptor> A; + A a1(A1(3)); + A a2 = a1; + assert(a2 == a1); + assert(!(a2 != a1)); + } + { + typedef std::scoped_allocator_adaptor, A2> A; + A a1(A1(4), A2(5)); + A a2 = a1; + assert(a2 == a1); + assert(!(a2 != a1)); + } + { + typedef std::scoped_allocator_adaptor, A2, A3> A; + A a1(A1(4), A2(5), A3(6)); + A a2 = a1; + assert(a2 == a1); + assert(!(a2 != a1)); + } + { + typedef std::scoped_allocator_adaptor, A2, A3> A; + A a1(A1(4), A2(5), A3(6)); + A a2(A1(4), A2(5), A3(5)); + assert(a2 != a1); + assert(!(a2 == a1)); + } + +#endif // _LIBCPP_HAS_NO_RVALUE_REFERENCES +} diff --git a/test/utilities/time/time.clock/time.clock.monotonic/consistency.pass.cpp b/test/utilities/time/time.clock/time.clock.steady/consistency.pass.cpp similarity index 100% rename from test/utilities/time/time.clock/time.clock.monotonic/consistency.pass.cpp rename to test/utilities/time/time.clock/time.clock.steady/consistency.pass.cpp diff --git a/test/utilities/time/time.clock/time.clock.monotonic/now.pass.cpp b/test/utilities/time/time.clock/time.clock.steady/now.pass.cpp similarity index 100% rename from test/utilities/time/time.clock/time.clock.monotonic/now.pass.cpp rename to test/utilities/time/time.clock/time.clock.steady/now.pass.cpp