]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gdc.test/fail_compilation/fail303.d
d: Import dmd b8384668f, druntime e6caaab9, phobos 5ab9ad256 (v2.098.0-beta.1)
[thirdparty/gcc.git] / gcc / testsuite / gdc.test / fail_compilation / fail303.d
CommitLineData
b4c522fa
IB
1/*
2TEST_OUTPUT:
3---
5fee5ec3
IB
4fail_compilation/fail303.d(18): Deprecation: use of imaginary type `ireal` is deprecated, use `real` instead
5fail_compilation/fail303.d(20): Error: `double /= cdouble` is undefined. Did you mean `double /= cdouble.re`?
6fail_compilation/fail303.d(21): Error: `ireal *= ireal` is an undefined operation
7fail_compilation/fail303.d(22): Error: `ireal *= creal` is undefined. Did you mean `ireal *= creal.im`?
8fail_compilation/fail303.d(23): Error: `ireal %= creal` is undefined. Did you mean `ireal %= creal.im`?
9fail_compilation/fail303.d(24): Error: `ireal += real` is undefined (result is complex)
10fail_compilation/fail303.d(25): Error: `ireal -= creal` is undefined (result is complex)
11fail_compilation/fail303.d(26): Error: `double -= idouble` is undefined (result is complex)
b4c522fa
IB
12---
13*/
14
15
16void main()
17{
18 ireal x = 3.0i;
19 double y = 3;
20 y /= 2.0 + 6i;
21 x *= 7.0i;
22 x *= 3.0i + 2;
23 x %= (2 + 6.0i);
24 x += 2.0;
25 x -= 1 + 4i;
26 y -= 3.0i;
27}