Mercurial > projects > dstress
diff run/o/opCat_16_G.d @ 672:ec3124ba366f
AJG <AJG@nospam.com>
2005-09-18
news:dgj92k$226p$1@digitaldaemon.com
author | thomask |
---|---|
date | Mon, 19 Sep 2005 07:37:25 +0000 |
parents | |
children | b8c0195059d9 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/o/opCat_16_G.d Mon Sep 19 07:37:25 2005 +0000 @@ -0,0 +1,19 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ AJG <AJG@nospam.com> +// @date@ 2005-09-18 +// @uri@ news:dgj92k$226p$1@digitaldaemon.com + +module dstress.run.o.opCat_16_G; + +int main(){ + dchar[][] strings; + strings.length = 1; + strings[0] = "Foo"; + assert((strings ~ "Bar"d).length==2); + assert((strings ~ "Bar"d)[0] == "Foo"d); + assert((strings ~ "Bar"d)[1] == "Bar"d); + return 0; +}