1 //===----------------------------------------------------------------------===//
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
7 //===----------------------------------------------------------------------===//
11 // stack& operator=(stack&& c)
12 // noexcept(is_nothrow_move_assignable<container_type>::value);
14 // This tests a conforming extension
21 #include "test_macros.h"
27 typedef std::stack
<MoveOnly
> C
;
28 static_assert(std::is_nothrow_move_assignable
<C
>::value
, "");