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 | //===----------------------------------------------------------------------===// |
8 | |
9 | // <valarray> |
10 | |
11 | // template<class T> |
12 | // class valarray |
13 | // { |
14 | // public: |
15 | // typedef T value_type; |
16 | // ... |
17 | |
18 | #include <valarray> |
19 | #include <type_traits> |
20 | |
21 | #include "test_macros.h" |
22 | |
23 | int main(int, char**) |
24 | { |
25 | static_assert((std::is_same<std::valarray<int>::value_type, int>::value), "" ); |
26 | static_assert((std::is_same<std::valarray<double>::value_type, double>::value), "" ); |
27 | |
28 | return 0; |
29 | } |
30 | |