Mercurial > projects > dstress
annotate run/bug_cod2_4211_C.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 | 1e6afb94ce6d |
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 // __DSTRESS_DFLAGS__ -O | |
10 | |
11 module dstress.run.bug_cod2_4211_C; | |
12 | |
13 short[1] a; | |
14 short[1] b; | |
15 | |
16 short[] concat() { | |
17 return a~b; | |
18 } | |
19 | |
20 int main(){ | |
21 a[]=1; | |
22 b[]=3; | |
23 | |
24 short[] arr=concat(); | |
25 | |
26 assert(arr.length==2); | |
27 assert(arr[0]==1); | |
28 assert(arr[1]==3); | |
29 | |
30 return 0; | |
31 } | |
32 |