Mercurial > projects > dstress
comparison run/o/opCat_15_L.d @ 591:34b3845d0e2a
Nick <Nick_member@pathlink.com>
2005-06-21
news:d99i1h$f70$1@digitaldaemon.com
author | thomask |
---|---|
date | Wed, 22 Jun 2005 11:36:08 +0000 |
parents | |
children | b8c0195059d9 |
comparison
equal
deleted
inserted
replaced
590:95fa7f1ce1c9 | 591:34b3845d0e2a |
---|---|
1 // $HeadURL$ | |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 // @author@ Nick <Nick_member@pathlink.com> | |
6 // @date@ 2005-06-21 | |
7 // @uri@ news:d99i1h$f70$1@digitaldaemon.com | |
8 | |
9 module dstress.run.o.opCat_15_L; | |
10 | |
11 int main(){ | |
12 real x=1.0; | |
13 real[] arr; | |
14 | |
15 arr = arr ~ x; | |
16 assert(arr.length==1); | |
17 assert(arr[0]==1.0); | |
18 | |
19 x=0.0; | |
20 assert(arr[0]==1.0); | |
21 | |
22 return 0; | |
23 } |