Mercurial > projects > dstress
changeset 306:1a91b18b3260
? / bool, implicit cast
Tintor Marko <tm030127d@galeb.etf.bg.ac.yu>
2005-03-13
news:opsnk5ihes1w2jp2@pentium2
nntp://news.digitalmars.com/digitalmars.D.bugs/3159
author | thomask |
---|---|
date | Mon, 14 Mar 2005 06:11:35 +0000 |
parents | cf348f439ade |
children | 86e4b19bc26b |
files | run/cast_20.d run/cast_21.d |
diffstat | 2 files changed, 40 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/cast_20.d Mon Mar 14 06:11:35 2005 +0000 @@ -0,0 +1,22 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Tintor Marko <tm030127d@galeb.etf.bg.ac.yu> +// @date@ 2005-03-13 +// @uri@ news:opsnk5ihes1w2jp2@pentium2 +// @url@ nntp://news.digitalmars.com/digitalmars.D.bugs/3159 + +module dstress.run.cast_20; + +bool equal(byte* a, byte* b){ + return (!a || !b) ? (!a && !b) : bug(); +} + +bool bug(){ + return false; +} + +int main(){ + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/cast_21.d Mon Mar 14 06:11:35 2005 +0000 @@ -0,0 +1,18 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Tintor Marko <tm030127d@galeb.etf.bg.ac.yu> +// @date@ 2005-03-13 +// @uri@ news:opsnk5ihes1w2jp2@pentium2 +// @url@ nntp://news.digitalmars.com/digitalmars.D.bugs/3159 + +module dstress.run.cast_21; + +bool equal(byte* a, byte* b){ + return (!a || !b) ? (!a && !b) : false; +} + +int main(){ + return 0; +}