Mercurial > projects > dstress
annotate run/bug_cod2_4211_J.d @ 1619:bebc7472a832
Fix #7.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Sat, 07 Nov 2009 18:55:30 +0100 |
parents | 1e6afb94ce6d |
children |
rev | line source |
---|---|
492 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 // @author@ MicroWizard <MicroWizard_member@pathlink.com> | |
6 // @date@ 2005-04-27 | |
7 // @uri@ news:d4or18$1th1$1@digitaldaemon.com | |
8 | |
9 module dstress.run.bug_cod2_4211_J; | |
10 | |
11 ifloat[1] a; | |
12 ifloat[1] b; | |
13 | |
14 ifloat[] concat() { | |
15 return a~b; | |
16 } | |
17 | |
18 int main(){ | |
19 a[]=1.0fi; | |
20 b[]=3.0fi; | |
21 | |
516 | 22 ifloat[] arr=concat(); |
492 | 23 |
24 assert(arr.length==2); | |
25 assert(arr[0]==1.0fi); | |
26 assert(arr[1]==3.0fi); | |
27 | |
28 return 0; | |
29 } | |
30 |