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 //===----------------------------------------------------------------------===//
11 // complex& operator*=(const T& rhs);
16 #include "test_macros.h"
23 assert(c
.real() == 1);
24 assert(c
.imag() == 0);
26 assert(c
.real() == 1.5);
27 assert(c
.imag() == 0);
29 assert(c
.real() == 2.25);
30 assert(c
.imag() == 0);
32 assert(c
.real() == -3.375);
33 assert(c
.imag() == 0);
36 assert(c
.real() == -5.0625);
37 assert(c
.imag() == 3);