1//===----------------------------------------------------------------------===//
2//
3//                     The LLVM Compiler Infrastructure
4//
5// This file is dual licensed under the MIT and the University of Illinois Open
6// Source Licenses. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9
10// <complex>
11
12// template<class T>
13// class complex
14// {
15// public:
16//   typedef T value_type;
17//   ...
18// };
19
20#include <complex>
21#include <type_traits>
22
23template <class T>
24void
25test()
26{
27    typedef std::complex<T> C;
28    static_assert((std::is_same<typename C::value_type, T>::value), "");
29}
30
31int main()
32{
33    test<float>();
34    test<double>();
35    test<long double>();
36}
37