Mercurial > projects > dstress
changeset 468:9db08558fa6f
implicit conversion between ifloat and float
David L. Davis <SpottedTiger@yahoo.com>
2005-04-23
news:d4cemj$mma$1@digitaldaemon.com
author | thomask |
---|---|
date | Sat, 23 Apr 2005 05:56:24 +0000 |
parents | 5d6bb14f6415 |
children | be3575b6bf40 |
files | nocompile/bug_cg87_1240_A.d nocompile/bug_cg87_1240_B.d nocompile/bug_cg87_1240_C.d nocompile/bug_cg87_1240_D.d nocompile/bug_cg87_1240_E.d nocompile/bug_cg87_1240_F.d |
diffstat | 6 files changed, 120 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/bug_cg87_1240_A.d Sat Apr 23 05:56:24 2005 +0000 @@ -0,0 +1,20 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ David L. Davis <SpottedTiger@yahoo.com> +// @date@ 2005-04-23 +// @uri@ news:d4cemj$mma$1@digitaldaemon.com + +// __DSTRESS_ELINE__ 16 + +module dstress.nocompile.bug_cg87_1240_A; + +int main(){ + real r; + + if (r > ireal.max){ + assert(0); + } + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/bug_cg87_1240_B.d Sat Apr 23 05:56:24 2005 +0000 @@ -0,0 +1,20 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ David L. Davis <SpottedTiger@yahoo.com> +// @date@ 2005-04-23 +// @uri@ news:d4cemj$mma$1@digitaldaemon.com + +// __DSTRESS_ELINE__ 16 + +module dstress.nocompile.bug_cg87_1240_B; + +int main(){ + ireal r; + + if (r > real.max){ + assert(0); + } + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/bug_cg87_1240_C.d Sat Apr 23 05:56:24 2005 +0000 @@ -0,0 +1,20 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ David L. Davis <SpottedTiger@yahoo.com> +// @date@ 2005-04-23 +// @uri@ news:d4cemj$mma$1@digitaldaemon.com + +// __DSTRESS_ELINE__ 16 + +module dstress.nocompile.bug_cg87_1240_C; + +int main(){ + float r; + + if (r < ifloat.max){ + assert(0); + } + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/bug_cg87_1240_D.d Sat Apr 23 05:56:24 2005 +0000 @@ -0,0 +1,20 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ David L. Davis <SpottedTiger@yahoo.com> +// @date@ 2005-04-23 +// @uri@ news:d4cemj$mma$1@digitaldaemon.com + +// __DSTRESS_ELINE__ 16 + +module dstress.nocompile.bug_cg87_1240_D; + +int main(){ + ifloat r; + + if (r < float.max){ + assert(0); + } + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/bug_cg87_1240_E.d Sat Apr 23 05:56:24 2005 +0000 @@ -0,0 +1,20 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ David L. Davis <SpottedTiger@yahoo.com> +// @date@ 2005-04-23 +// @uri@ news:d4cemj$mma$1@digitaldaemon.com + +// __DSTRESS_ELINE__ 16 + +module dstress.nocompile.bug_cg87_1240_E; + +int main(){ + double r; + + if (r == idouble.max){ + assert(0); + } + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/bug_cg87_1240_F.d Sat Apr 23 05:56:24 2005 +0000 @@ -0,0 +1,20 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ David L. Davis <SpottedTiger@yahoo.com> +// @date@ 2005-04-23 +// @uri@ news:d4cemj$mma$1@digitaldaemon.com + +// __DSTRESS_ELINE__ 16 + +module dstress.nocompile.bug_cg87_1240_F; + +int main(){ + idouble r; + + if (r == double.max){ + assert(0); + } + return 0; +}