# HG changeset patch # User thomask # Date 1173371181 0 # Node ID b1d7b8a8c46625aca7c090b84586aa0090a0b864 # Parent 176afd3d6d8eb77b38f072af6c8547b79499eeba [Issue 1027] CTFE doesn't support (string == string) Reiner Pope 2007-03-03 http://d.puremagic.com/issues/show_bug.cgi?id=1017 diff -r 176afd3d6d8e -r b1d7b8a8c466 compile/o/opEquals_07_A.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/compile/o/opEquals_07_A.d Thu Mar 08 16:26:21 2007 +0000 @@ -0,0 +1,16 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Reiner Pope +// @date@ 2007-03-03 +// @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=1017 +// @desc@ [Issue 1027] CTFE doesn't support (string == string) + +module dstress.compile.o.opEquals_07_A; + +static assert(equals("alphabet", "alphabet")); + +bool equals(char[] a, char[] b){ + return (a == b); +} diff -r 176afd3d6d8e -r b1d7b8a8c466 compile/o/opEquals_07_B.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/compile/o/opEquals_07_B.d Thu Mar 08 16:26:21 2007 +0000 @@ -0,0 +1,16 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Reiner Pope +// @date@ 2007-03-03 +// @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=1017 +// @desc@ [Issue 1027] CTFE doesn't support (string == string) + +module dstress.compile.o.opEquals_07_B; + +static assert(!equals("Alphabet", "alphabet")); + +bool equals(char[] a, char[] b){ + return (a == b); +} diff -r 176afd3d6d8e -r b1d7b8a8c466 compile/o/opEquals_07_C.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/compile/o/opEquals_07_C.d Thu Mar 08 16:26:21 2007 +0000 @@ -0,0 +1,16 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Reiner Pope +// @date@ 2007-03-03 +// @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=1017 +// @desc@ [Issue 1027] CTFE doesn't support (string == string) + +module dstress.compile.o.opEquals_07_C; + +static assert(!equals("alphabet", "alphabet")); + +bool equals(char[] a, char[] b){ + return (a != b); +} diff -r 176afd3d6d8e -r b1d7b8a8c466 compile/o/opEquals_07_D.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/compile/o/opEquals_07_D.d Thu Mar 08 16:26:21 2007 +0000 @@ -0,0 +1,16 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Reiner Pope +// @date@ 2007-03-03 +// @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=1017 +// @desc@ [Issue 1027] CTFE doesn't support (string == string) + +module dstress.compile.o.opEquals_07_D; + +static assert(equals("Alphabet", "alphabet")); + +bool equals(char[] a, char[] b){ + return (a != b); +} diff -r 176afd3d6d8e -r b1d7b8a8c466 compile/o/opEquals_07_E.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/compile/o/opEquals_07_E.d Thu Mar 08 16:26:21 2007 +0000 @@ -0,0 +1,17 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Reiner Pope +// @date@ 2007-03-03 +// @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=1017 +// @desc@ [Issue 1027] CTFE doesn't support (string == string) + +module dstress.compile.o.opEquals_07_E; + +bool equals(char[] a, char[] b){ + return (a == b); +} + +static assert(equals("alphabet", "alphabet")); + diff -r 176afd3d6d8e -r b1d7b8a8c466 compile/o/opEquals_07_F.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/compile/o/opEquals_07_F.d Thu Mar 08 16:26:21 2007 +0000 @@ -0,0 +1,19 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Reiner Pope +// @date@ 2007-03-03 +// @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=1017 +// @desc@ [Issue 1027] CTFE doesn't support (string == string) + +module dstress.compile.o.opEquals_07_F; + +bool equals(char[] a, char[] b){ + return (a == b); +} + +void foo(){ + static assert(equals("alphabet", "alphabet")); +} + diff -r 176afd3d6d8e -r b1d7b8a8c466 reporter.txt --- a/reporter.txt Thu Mar 08 16:25:57 2007 +0000 +++ b/reporter.txt Thu Mar 08 16:26:21 2007 +0000 @@ -124,6 +124,7 @@ Paul Runde Peter C. Chapin Regan Heath +Reiner Pope Rev Robert Atkinson Robert Schiele