Mercurial > projects > dstress
changeset 666:68b43a5bb207
zwang <nehzgnaw@gmail.com>
2005-09-15
news:dgap19$2lhi$1@digitaldaemon.com
author | thomask |
---|---|
date | Fri, 16 Sep 2005 17:20:58 +0000 |
parents | 6121997209e0 |
children | d7407a507f2d |
files | norun/o/opCat_16_A.d norun/o/opCat_16_B.d |
diffstat | 2 files changed, 60 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/norun/o/opCat_16_A.d Fri Sep 16 17:20:58 2005 +0000 @@ -0,0 +1,30 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ zwang <nehzgnaw@gmail.com> +// @date@ 2005-09-15 +// @uri@ news:dgap19$2lhi$1@digitaldaemon.com + +// __DSTRESS_ELINE__ 29 + +module dstress.norun.o.opCat_16_A; + +bool called; + +void test(wchar[] w){ + assert(w.length==4); + assert(w[0]=='b'); + assert(w[1]=='u'); + assert(w[2]=='g'); + assert(w[3]=='s'); + called = true; +} + +void main(){ + const wchar[] S = "bug"w; + assert(!called); + test(S ~ "s"w); + assert(called); + assert(0); +} \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/norun/o/opCat_16_B.d Fri Sep 16 17:20:58 2005 +0000 @@ -0,0 +1,30 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ zwang <nehzgnaw@gmail.com> +// @date@ 2005-09-15 +// @uri@ news:dgap19$2lhi$1@digitaldaemon.com + +// __DSTRESS_ELINE__ 29 + +module dstress.norun.o.opCat_16_B; + +bool called; + +void test(wchar[] w){ + assert(w.length==4); + assert(w[0]=='b'); + assert(w[1]=='u'); + assert(w[2]=='g'); + assert(w[3]=='s'); + called = true; +} + +void main(){ + wchar[] S = "bug"w; + assert(!called); + test(S ~ "s"w); + assert(called); + assert(0); +} \ No newline at end of file