Home | History | Annotate | Download | only in queue.cons
      1 //===----------------------------------------------------------------------===//
      2 //
      3 //                     The LLVM Compiler Infrastructure
      4 //
      5 // This file is dual licensed under the MIT and the University of Illinois Open
      6 // Source Licenses. See LICENSE.TXT for details.
      7 //
      8 //===----------------------------------------------------------------------===//
      9 
     10 // UNSUPPORTED: c++98, c++03
     11 
     12 // <queue>
     13 
     14 // queue(queue&&)
     15 //        noexcept(is_nothrow_move_constructible<container_type>::value);
     16 
     17 // This tests a conforming extension
     18 
     19 
     20 #include <queue>
     21 #include <cassert>
     22 
     23 #include "test_macros.h"
     24 #include "MoveOnly.h"
     25 
     26 int main()
     27 {
     28 #if defined(_LIBCPP_VERSION)
     29     {
     30         typedef std::queue<MoveOnly> C;
     31         static_assert(std::is_nothrow_move_constructible<C>::value, "");
     32     }
     33 #endif
     34 }
     35