annotate run/o/opCat_16_G.d @ 1560:36bedfa079e6

D1 -> D2 : 2/N
author thomask
date Sun, 19 Aug 2007 19:15:01 +0000
parents b8c0195059d9
children
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
1489
b8c0195059d9 changed nntp: URLs to http: URLs
thomask
parents: 672
diff changeset
7 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=5027
672
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_G;
ec3124ba366f AJG <AJG@nospam.com>
thomask
parents:
diff changeset
10
ec3124ba366f AJG <AJG@nospam.com>
thomask
parents:
diff changeset
11 int main(){
1560
36bedfa079e6 D1 -> D2 : 2/N
thomask
parents: 1489
diff changeset
12 dstring[] strings;
672
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";
1560
36bedfa079e6 D1 -> D2 : 2/N
thomask
parents: 1489
diff changeset
15 assert((strings ~ "Bar"d.dup).length==2);
36bedfa079e6 D1 -> D2 : 2/N
thomask
parents: 1489
diff changeset
16 assert((strings ~ "Bar"d.dup)[0] == "Foo");
36bedfa079e6 D1 -> D2 : 2/N
thomask
parents: 1489
diff changeset
17 assert((strings ~ "Bar"d.dup)[1] == "Bar");
672
ec3124ba366f AJG <AJG@nospam.com>
thomask
parents:
diff changeset
18 return 0;
ec3124ba366f AJG <AJG@nospam.com>
thomask
parents:
diff changeset
19 }