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 max_size() const noexcept;
18 #include "test_macros.h"
19 #include "min_allocator.h"
24 typedef std::array
<int, 2> C
;
26 ASSERT_NOEXCEPT(c
.max_size());
27 assert(c
.max_size() == 2);
30 typedef std::array
<int, 0> C
;
32 ASSERT_NOEXCEPT(c
.max_size());
33 assert(c
.max_size() == 0);