[RISCV] Fix mgather -> riscv.masked.strided.load combine not extending indices (...
[llvm-project.git] / libcxx / test / std / containers / sequences / array / array.tuple / tuple_size.pass.cpp
blobe31407ac5a7d7abc8c673ecb85071724b21e8015
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 // tuple_size<array<T, N> >::value
13 #include <array>
15 #include "test_macros.h"
17 template <class T, std::size_t N>
18 void test()
21 typedef std::array<T, N> C;
22 static_assert((std::tuple_size<C>::value == N), "");
25 typedef std::array<T const, N> C;
26 static_assert((std::tuple_size<C>::value == N), "");
29 typedef std::array<T volatile, N> C;
30 static_assert((std::tuple_size<C>::value == N), "");
33 typedef std::array<T const volatile, N> C;
34 static_assert((std::tuple_size<C>::value == N), "");
38 int main(int, char**)
40 test<double, 0>();
41 test<double, 3>();
42 test<double, 5>();
44 return 0;