[PowerPC] Collect some CallLowering arguments into a struct. [NFC]
[llvm-project.git] / libcxx / test / std / containers / sequences / array / max_size.pass.cpp
bloba0b77392ee80420b59dc494ca4cc0e89df0ebe89
1 //===----------------------------------------------------------------------===//
2 //
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
6 //
7 //===----------------------------------------------------------------------===//
9 // <array>
11 // class array
13 // bool max_size() const noexcept;
15 #include <array>
16 #include <cassert>
18 #include "test_macros.h"
19 #include "min_allocator.h"
21 int main(int, char**)
24 typedef std::array<int, 2> C;
25 C c;
26 ASSERT_NOEXCEPT(c.max_size());
27 assert(c.max_size() == 2);
30 typedef std::array<int, 0> C;
31 C c;
32 ASSERT_NOEXCEPT(c.max_size());
33 assert(c.max_size() == 0);
36 return 0;