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 complex<float>
13// {
14// public:
15//     explicit constexpr complex(const complex<double>&);
16// };
17
18#include <complex>
19#include <cassert>
20
21int main()
22{
23    const std::complex<double> cd(2.5, 3.5);
24    std::complex<float> cf = cd;
25    assert(cf.real() == cd.real());
26    assert(cf.imag() == cd.imag());
27}
28