Mercurial > projects > dstress
changeset 1209:1fb137179022
[Issue 479] New: can't compare arrayliteral statically with string
Nazo Humei <lovesyao@hotmail.com>
2006-11-04
news:bug-479-3@http.d.puremagic.com/issues/
author | thomask |
---|---|
date | Wed, 08 Nov 2006 15:23:40 +0000 |
parents | 4eda4938c34e |
children | 94d6b178889f |
files | compile/o/opEquals_06_A.d compile/o/opEquals_06_B.d compile/o/opEquals_06_C.d compile/o/opEquals_06_D.d compile/o/opEquals_06_E.d compile/o/opEquals_06_F.d compile/o/opEquals_06_G.d compile/o/opEquals_06_H.d reporter.txt |
diffstat | 9 files changed, 130 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/compile/o/opEquals_06_A.d Wed Nov 08 15:23:40 2006 +0000 @@ -0,0 +1,16 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Nazo Humei <lovesyao@hotmail.com> +// @date@ 2006-11-04 +// @uri@ news:bug-479-3@http.d.puremagic.com/issues/ +// @desc@ [Issue 479] New: can't compare arrayliteral statically with string + +module dstress.compile.o.opEquals_06_A; + +static if(['a','b','c','d'] == "abcd"){ + // OK +}else{ + static assert(0); +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/compile/o/opEquals_06_B.d Wed Nov 08 15:23:40 2006 +0000 @@ -0,0 +1,14 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Nazo Humei <lovesyao@hotmail.com> +// @date@ 2006-11-04 +// @uri@ news:bug-479-3@http.d.puremagic.com/issues/ +// @desc@ [Issue 479] New: can't compare arrayliteral statically with string + +module dstress.compile.o.opEquals_06_B; + +static if(['a','b','c','d'] != "abcd"){ + static assert(0); +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/compile/o/opEquals_06_C.d Wed Nov 08 15:23:40 2006 +0000 @@ -0,0 +1,14 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Nazo Humei <lovesyao@hotmail.com> +// @date@ 2006-11-04 +// @uri@ news:bug-479-3@http.d.puremagic.com/issues/ +// @desc@ [Issue 479] New: can't compare arrayliteral statically with string + +module dstress.compile.o.opEquals_06_C; + +static if("abcd" != ['a','b','c','d']){ + static assert(0); +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/compile/o/opEquals_06_D.d Wed Nov 08 15:23:40 2006 +0000 @@ -0,0 +1,16 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Nazo Humei <lovesyao@hotmail.com> +// @date@ 2006-11-04 +// @uri@ news:bug-479-3@http.d.puremagic.com/issues/ +// @desc@ [Issue 479] New: can't compare arrayliteral statically with string + +module dstress.compile.o.opEquals_06_D; + +static if("abcd" == ['a','b','c','d']){ + // OK +}else{ + static assert(0); +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/compile/o/opEquals_06_E.d Wed Nov 08 15:23:40 2006 +0000 @@ -0,0 +1,18 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Nazo Humei <lovesyao@hotmail.com> +// @date@ 2006-11-04 +// @uri@ news:bug-479-3@http.d.puremagic.com/issues/ +// @desc@ [Issue 479] New: can't compare arrayliteral statically with string + +module dstress.compile.o.opEquals_06_E; + +const char[] str = "abcd"; + +static if(str == ['a','b','c','d']){ + // OK +}else{ + static assert(0); +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/compile/o/opEquals_06_F.d Wed Nov 08 15:23:40 2006 +0000 @@ -0,0 +1,18 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Nazo Humei <lovesyao@hotmail.com> +// @date@ 2006-11-04 +// @uri@ news:bug-479-3@http.d.puremagic.com/issues/ +// @desc@ [Issue 479] New: can't compare arrayliteral statically with string + +module dstress.compile.o.opEquals_06_F; + +const char[] str = "abcd"; + +static if(['a','b','c','d'] == str){ + // OK +}else{ + static assert(0); +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/compile/o/opEquals_06_G.d Wed Nov 08 15:23:40 2006 +0000 @@ -0,0 +1,16 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Nazo Humei <lovesyao@hotmail.com> +// @date@ 2006-11-04 +// @uri@ news:bug-479-3@http.d.puremagic.com/issues/ +// @desc@ [Issue 479] New: can't compare arrayliteral statically with string + +module dstress.compile.o.opEquals_06_G; + +const char[] str = "abcd"; + +static if(['a','b','c','d'] != str){ + static assert(0); +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/compile/o/opEquals_06_H.d Wed Nov 08 15:23:40 2006 +0000 @@ -0,0 +1,16 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Nazo Humei <lovesyao@hotmail.com> +// @date@ 2006-11-04 +// @uri@ news:bug-479-3@http.d.puremagic.com/issues/ +// @desc@ [Issue 479] New: can't compare arrayliteral statically with string + +module dstress.compile.o.opEquals_06_H; + +const char[] str = "abcd"; + +static if(str != ['a','b','c','d']){ + static assert(0); +}
--- a/reporter.txt Wed Nov 08 15:23:30 2006 +0000 +++ b/reporter.txt Wed Nov 08 15:23:40 2006 +0000 @@ -18,6 +18,7 @@ Ben Hinkle <ben.hinkle@gmail.com>, <bhinkle4@juno.com>, <bhinkle@mathworks.com> Benjamin Herr Bent Rasmussen <exo@bent-rasmussen.info> +Bill Baxter <wbaxter@gmail.com> berupon <yu@3dcg.ne.jp> bobef <bobef@lessequal.com> Boris Kolar <boris.kolar@globera.com> @@ -96,6 +97,7 @@ Mike Swieton <mike@swieton.net> Mizuno Hiroki <hiroki1124@hotmail.com> nail <nail-mail@mail.ru> +Nazo Humei <lovesyao@hotmail.com> ndove http://www.dsource.org/forums/profile.php?mode=viewprofile&u=142 Neil Santos Nick Sabalausky