Mercurial > projects > dstress
annotate run/bug_cgcs_353_Q.d @ 492:e56d6f1cb48e
a[1]~b[1]
MicroWizard <MicroWizard_member@pathlink.com>
2005-04-27
news:d4or18$1th1$1@digitaldaemon.com
author | thomask |
---|---|
date | Thu, 28 Apr 2005 06:55:43 +0000 |
parents | |
children | 80e1b85295b3 |
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 | |
10 module dstress.run.bug_cgcs_353_Q; | |
11 | |
12 creal[1] a; | |
13 creal[1] b; | |
14 | |
15 creal[] concat() { | |
16 return a~b; | |
17 } | |
18 | |
19 int main(){ | |
20 a[]=0.5l+1.0li; | |
21 b[]=0.5l+3.0li; | |
22 | |
23 creal[] arr=concat(); | |
24 | |
25 assert(arr.length==2); | |
26 assert(arr[0]==0.5l+1.0li); | |
27 assert(arr[1]==0.5l+3.0li); | |
28 | |
29 return 0; | |
30 } | |
31 |