1 //===----------------------------------------------------------------------===//
3 // The LLVM Compiler Infrastructure
5 // This file is dual licensed under the MIT and the University of Illinois Open
6 // Source Licenses. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
12 // void swap(stack& c)
13 // noexcept(__is_nothrow_swappable<container_type>::value);
15 // This tests a conforming extension
17 // UNSUPPORTED: c++98, c++03
28 typedef std::stack<MoveOnly> C;
29 static_assert(noexcept(swap(std::declval<C&>(), std::declval<C&>())), "");