# HG changeset patch # User thomask # Date 1164461904 0 # Node ID 4e0034eebde45a1439862062dc46ffd63ee98a97 # Parent 97f5024add8cfe74e644cb2320ef838d5b8f84c1 [Issue 555] New: Integral ireal literals can't be specified Matti Niemenmaa 2006-11-18 news:bug-555-3@http.d.puremagic.com/issues/ diff -r 97f5024add8c -r 4e0034eebde4 compile/f/float_literal_dec_18_A.d --- /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 +// @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); diff -r 97f5024add8c -r 4e0034eebde4 compile/f/float_literal_dec_18_B.d --- /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 +// @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); diff -r 97f5024add8c -r 4e0034eebde4 compile/f/float_literal_dec_18_C.d --- /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 +// @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); diff -r 97f5024add8c -r 4e0034eebde4 compile/f/float_literal_dec_18_D.d --- /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 +// @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); diff -r 97f5024add8c -r 4e0034eebde4 compile/f/float_literal_dec_18_E.d --- /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 +// @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); diff -r 97f5024add8c -r 4e0034eebde4 compile/f/float_literal_dec_18_F.d --- /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 +// @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);