[PowerPC][NFC] Cleanup PPCCTRLoopsVerify pass
[llvm-project.git] / libcxx / test / std / containers / container.adaptors / queue / queue.cons / move_noexcept.pass.cpp
blob5a2fd037a009e98bbe853df5e0a449b36fc67e52
1 //===----------------------------------------------------------------------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
9 // UNSUPPORTED: c++03
11 // <queue>
13 // queue(queue&&)
14 // noexcept(is_nothrow_move_constructible<container_type>::value);
16 // This tests a conforming extension
19 #include <queue>
20 #include <cassert>
22 #include "test_macros.h"
23 #include "MoveOnly.h"
25 int main(int, char**)
27 #if defined(_LIBCPP_VERSION)
29 typedef std::queue<MoveOnly> C;
30 static_assert(std::is_nothrow_move_constructible<C>::value, "");
32 #endif
34 return 0;