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 //===----------------------------------------------------------------------===//
13 // bool empty() const noexcept;
15 #include <forward_list>
18 #include "test_macros.h"
19 #include "min_allocator.h"
24 typedef std::forward_list
<int> C
;
26 ASSERT_NOEXCEPT(c
.empty());
28 c
.push_front(C::value_type(1));
33 #if TEST_STD_VER >= 11
35 typedef std::forward_list
<int, min_allocator
<int>> C
;
37 ASSERT_NOEXCEPT(c
.empty());
39 c
.push_front(C::value_type(1));