| //===----------------------------------------------------------------------===// |
| // The LLVM Compiler Infrastructure |
| // This file is distributed under the University of Illinois Open Source |
| // License. See LICENSE.TXT for details. |
| //===----------------------------------------------------------------------===// |
| // void push(value_type&& v); |
| #include "../../../../MoveOnly.h" |
| #ifndef _LIBCPP_HAS_NO_RVALUE_REFERENCES |
| assert(q.top() == MoveOnly(1)); |
| assert(q.top() == MoveOnly(2)); |
| assert(q.top() == MoveOnly(3)); |
| #endif // _LIBCPP_HAS_NO_RVALUE_REFERENCES |