annotate run/o/opCat_16_H.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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
672
ec3124ba366f AJG <AJG@nospam.com>
thomask
parents:
diff changeset
1 // $HeadURL$
ec3124ba366f AJG <AJG@nospam.com>
thomask
parents:
diff changeset
2 // $Date$
ec3124ba366f AJG <AJG@nospam.com>
thomask
parents:
diff changeset
3 // $Author$
ec3124ba366f AJG <AJG@nospam.com>
thomask
parents:
diff changeset
4
ec3124ba366f AJG <AJG@nospam.com>
thomask
parents:
diff changeset
5 // @author@ AJG <AJG@nospam.com>
ec3124ba366f AJG <AJG@nospam.com>
thomask
parents:
diff changeset
6 // @date@ 2005-09-18
ec3124ba366f AJG <AJG@nospam.com>
thomask
parents:
diff changeset
7 // @uri@ news:dgj92k$226p$1@digitaldaemon.com
ec3124ba366f AJG <AJG@nospam.com>
thomask
parents:
diff changeset
8
ec3124ba366f AJG <AJG@nospam.com>
thomask
parents:
diff changeset
9 module dstress.run.o.opCat_16_H;
ec3124ba366f AJG <AJG@nospam.com>
thomask
parents:
diff changeset
10
ec3124ba366f AJG <AJG@nospam.com>
thomask
parents:
diff changeset
11 int main(){
ec3124ba366f AJG <AJG@nospam.com>
thomask
parents:
diff changeset
12 wchar[][] strings;
ec3124ba366f AJG <AJG@nospam.com>
thomask
parents:
diff changeset
13 strings.length = 1;
ec3124ba366f AJG <AJG@nospam.com>
thomask
parents:
diff changeset
14 strings[0] = "Foo";
ec3124ba366f AJG <AJG@nospam.com>
thomask
parents:
diff changeset
15 assert((strings ~ "Bar"w).length==2);
ec3124ba366f AJG <AJG@nospam.com>
thomask
parents:
diff changeset
16 assert((strings ~ "Bar"w)[0] == "Foo"w);
ec3124ba366f AJG <AJG@nospam.com>
thomask
parents:
diff changeset
17 assert((strings ~ "Bar"w)[1] == "Bar"w);
ec3124ba366f AJG <AJG@nospam.com>
thomask
parents:
diff changeset
18 return 0;
ec3124ba366f AJG <AJG@nospam.com>
thomask
parents:
diff changeset
19 }