1 //===----------------------------------------------------------------------===//
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
7 //===----------------------------------------------------------------------===//
9 // UNSUPPORTED: c++03, c++11
13 #include <type_traits>
16 #include "test_macros.h"
20 using namespace std::literals
;
23 std::complex<long double> c1
= 3.0il
;
24 assert ( c1
== std::complex<long double>(0, 3.0));
30 std::complex<double> c1
= 3.0i
;
31 assert ( c1
== std::complex<double>(0, 3.0));
37 std::complex<float> c1
= 3.0if;
38 assert ( c1
== std::complex<float>(0, 3.0));