Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / libcxx / test / std / containers / container.adaptors / stack / stack.cons / move_noexcept.pass.cpp
blob24e66a7076e8628ad00d8b3fc187c9146fd412b5
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 // <stack>
13 // stack(stack&&)
14 // noexcept(is_nothrow_move_constructible<container_type>::value);
16 // This tests a conforming extension
18 #include <stack>
19 #include <cassert>
21 #include "test_macros.h"
22 #include "MoveOnly.h"
24 int main(int, char**)
26 #if defined(_LIBCPP_VERSION)
28 typedef std::stack<MoveOnly> C;
29 static_assert(std::is_nothrow_move_constructible<C>::value, "");
31 #endif
33 return 0;