[PowerPC] Collect some CallLowering arguments into a struct. [NFC]
[llvm-project.git] / libcxx / test / std / containers / sequences / array / empty.pass.cpp
bloba17aa50c5b2198b0c57cc59c4bf345dff3172dfc
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 empty() 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.empty());
27 assert(!c.empty());
30 typedef std::array<int, 0> C;
31 C c;
32 ASSERT_NOEXCEPT(c.empty());
33 assert( c.empty());
36 return 0;