]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libstdc++-v3/testsuite/23_containers/forward_list/cons/noexcept_move_construct.cc
Update copyright years.
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / 23_containers / forward_list / cons / noexcept_move_construct.cc
index ff952ebcdcc1a00fdf527df55e6ef2c88485de07..5c9113f9b99a482d7969591da832ad6beb685716 100644 (file)
@@ -2,7 +2,7 @@
 
 // 2011-06-01  Paolo Carlini  <paolo.carlini@oracle.com>
 //
-// Copyright (C) 2011-2020 Free Software Foundation, Inc.
+// Copyright (C) 2011-2024 Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
@@ -23,4 +23,8 @@
 
 typedef std::forward_list<int> fltype;
 
-static_assert(std::is_nothrow_move_constructible<fltype>::value, "Error");
+static_assert( std::is_nothrow_move_constructible<fltype>::value,
+              "noexcept move constructor" );
+static_assert( std::is_nothrow_constructible<fltype,
+              fltype, const typename fltype::allocator_type&>::value,
+              "noexcept move constructor with allocator" );