[PowerPC][NFC] Cleanup PPCCTRLoopsVerify pass
[llvm-project.git] / libcxx / test / std / containers / container.adaptors / queue / queue.cons / move_assign_noexcept.pass.cpp
blob55bd9b46366370309fe58c5bf4c96b66002cc16c
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 // <queue>
11 // queue& operator=(queue&& c)
12 // noexcept(is_nothrow_move_assignable<container_type>::value);
14 // This tests a conforming extension
16 // UNSUPPORTED: c++03
18 #include <queue>
19 #include <cassert>
21 #include "test_macros.h"
22 #include "MoveOnly.h"
24 int main(int, char**)
27 typedef std::queue<MoveOnly> C;
28 static_assert(std::is_nothrow_move_assignable<C>::value, "");
31 return 0;