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 //===----------------------------------------------------------------------===//
16 #include "test_macros.h"
18 // std::array is explicitly allowed to be initialized with A a = { init-list };.
19 // Disable the missing braces warning for this reason.
20 #include "disable_missing_braces_warning.h"
31 typedef std::array
<T
, 3> C
;
36 assert(&*i
== c
.data());
42 typedef std::array
<T
, 0> C
;
48 LIBCPP_ASSERT(ib
!= nullptr);
49 LIBCPP_ASSERT(ie
!= nullptr);