[PowerPC] Collect some CallLowering arguments into a struct. [NFC]
[llvm-project.git] / libcxx / test / std / containers / sequences / array / contiguous.pass.cpp
blob41a7153e88d46e8a0b10d71a831b5e4baff57fc1
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 // An array is a contiguous container
13 #include <array>
14 #include <cassert>
16 #include "test_macros.h"
18 template <class C>
19 void test_contiguous ( const C &c )
21 for ( size_t i = 0; i < c.size(); ++i )
22 assert ( *(c.begin() + i) == *(std::addressof(*c.begin()) + i));
25 int main(int, char**)
28 typedef double T;
29 typedef std::array<T, 3> C;
30 test_contiguous (C());
33 return 0;