Mercurial > projects > dstress
changeset 1234:4e0034eebde4
[Issue 555] New: Integral ireal literals can't be specified
Matti Niemenmaa <deewiant@gmail.com>
2006-11-18
news:bug-555-3@http.d.puremagic.com/issues/
author | thomask |
---|---|
date | Sat, 25 Nov 2006 13:38:24 +0000 |
parents | 97f5024add8c |
children | 3a8bc4294d51 |
files | compile/f/float_literal_dec_18_A.d compile/f/float_literal_dec_18_B.d compile/f/float_literal_dec_18_C.d compile/f/float_literal_dec_18_D.d compile/f/float_literal_dec_18_E.d compile/f/float_literal_dec_18_F.d |
diffstat | 6 files changed, 84 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/compile/f/float_literal_dec_18_A.d Sat Nov 25 13:38:24 2006 +0000 @@ -0,0 +1,14 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Matti Niemenmaa <deewiant@gmail.com> +// @date@ 2006-11-18 +// @uri@ news:bug-555-3@http.d.puremagic.com/issues/ +// @desc@ [Issue 555] New: Integral ireal literals can't be specified + +module dstress.compile.f.float_literal_dec_18_A; + +const ifloat x = 4Fi; + +static assert(x == 4.0i);
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/compile/f/float_literal_dec_18_B.d Sat Nov 25 13:38:24 2006 +0000 @@ -0,0 +1,14 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Matti Niemenmaa <deewiant@gmail.com> +// @date@ 2006-11-18 +// @uri@ news:bug-555-3@http.d.puremagic.com/issues/ +// @desc@ [Issue 555] New: Integral ireal literals can't be specified + +module dstress.compile.f.float_literal_dec_18_B; + +const idouble x = 4i; + +static assert(x == 4.0i);
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/compile/f/float_literal_dec_18_C.d Sat Nov 25 13:38:24 2006 +0000 @@ -0,0 +1,14 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Matti Niemenmaa <deewiant@gmail.com> +// @date@ 2006-11-18 +// @uri@ news:bug-555-3@http.d.puremagic.com/issues/ +// @desc@ [Issue 555] New: Integral ireal literals can't be specified + +module dstress.compile.f.float_literal_dec_18_C; + +const ireal x = 4Li; + +static assert(x == 4.0i);
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/compile/f/float_literal_dec_18_D.d Sat Nov 25 13:38:24 2006 +0000 @@ -0,0 +1,14 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Matti Niemenmaa <deewiant@gmail.com> +// @date@ 2006-11-18 +// @uri@ news:bug-555-3@http.d.puremagic.com/issues/ +// @desc@ [Issue 555] New: Integral ireal literals can't be specified + +module dstress.compile.f.float_literal_dec_18_D; + +const cfloat x = 1.0F + 4Fi; + +static assert(x == 1.0 + 4.0i);
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/compile/f/float_literal_dec_18_E.d Sat Nov 25 13:38:24 2006 +0000 @@ -0,0 +1,14 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Matti Niemenmaa <deewiant@gmail.com> +// @date@ 2006-11-18 +// @uri@ news:bug-555-3@http.d.puremagic.com/issues/ +// @desc@ [Issue 555] New: Integral ireal literals can't be specified + +module dstress.compile.f.float_literal_dec_18_E; + +const cdouble x = 1.0 + 4i; + +static assert(x == 1.0 + 4.0i);
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/compile/f/float_literal_dec_18_F.d Sat Nov 25 13:38:24 2006 +0000 @@ -0,0 +1,14 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Matti Niemenmaa <deewiant@gmail.com> +// @date@ 2006-11-18 +// @uri@ news:bug-555-3@http.d.puremagic.com/issues/ +// @desc@ [Issue 555] New: Integral ireal literals can't be specified + +module dstress.compile.f.float_literal_dec_18_F; + +const creal x = 1.0L + 4Li; + +static assert(x == 1.0 + 4.0i);