annotate run/bug_cod2_4211_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 1e6afb94ce6d
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
492
e56d6f1cb48e a[1]~b[1]
thomask
parents:
diff changeset
1 // $HeadURL$
e56d6f1cb48e a[1]~b[1]
thomask
parents:
diff changeset
2 // $Date$
e56d6f1cb48e a[1]~b[1]
thomask
parents:
diff changeset
3 // $Author$
e56d6f1cb48e a[1]~b[1]
thomask
parents:
diff changeset
4
e56d6f1cb48e a[1]~b[1]
thomask
parents:
diff changeset
5 // @author@ MicroWizard <MicroWizard_member@pathlink.com>
e56d6f1cb48e a[1]~b[1]
thomask
parents:
diff changeset
6 // @date@ 2005-04-27
e56d6f1cb48e a[1]~b[1]
thomask
parents:
diff changeset
7 // @uri@ news:d4or18$1th1$1@digitaldaemon.com
e56d6f1cb48e a[1]~b[1]
thomask
parents:
diff changeset
8
e56d6f1cb48e a[1]~b[1]
thomask
parents:
diff changeset
9 // __DSTRESS_DFLAGS__ -O
e56d6f1cb48e a[1]~b[1]
thomask
parents:
diff changeset
10
e56d6f1cb48e a[1]~b[1]
thomask
parents:
diff changeset
11 module dstress.run.bug_cod2_4211_Q;
e56d6f1cb48e a[1]~b[1]
thomask
parents:
diff changeset
12
e56d6f1cb48e a[1]~b[1]
thomask
parents:
diff changeset
13 creal[1] a;
e56d6f1cb48e a[1]~b[1]
thomask
parents:
diff changeset
14 creal[1] b;
e56d6f1cb48e a[1]~b[1]
thomask
parents:
diff changeset
15
e56d6f1cb48e a[1]~b[1]
thomask
parents:
diff changeset
16 creal[] concat() {
e56d6f1cb48e a[1]~b[1]
thomask
parents:
diff changeset
17 return a~b;
e56d6f1cb48e a[1]~b[1]
thomask
parents:
diff changeset
18 }
e56d6f1cb48e a[1]~b[1]
thomask
parents:
diff changeset
19
e56d6f1cb48e a[1]~b[1]
thomask
parents:
diff changeset
20 int main(){
e56d6f1cb48e a[1]~b[1]
thomask
parents:
diff changeset
21 a[]=0.5l+1.0li;
e56d6f1cb48e a[1]~b[1]
thomask
parents:
diff changeset
22 b[]=0.5l+3.0li;
e56d6f1cb48e a[1]~b[1]
thomask
parents:
diff changeset
23
e56d6f1cb48e a[1]~b[1]
thomask
parents:
diff changeset
24 creal[] arr=concat();
e56d6f1cb48e a[1]~b[1]
thomask
parents:
diff changeset
25
e56d6f1cb48e a[1]~b[1]
thomask
parents:
diff changeset
26 assert(arr.length==2);
e56d6f1cb48e a[1]~b[1]
thomask
parents:
diff changeset
27 assert(arr[0]==0.5l+1.0li);
e56d6f1cb48e a[1]~b[1]
thomask
parents:
diff changeset
28 assert(arr[1]==0.5l+3.0li);
e56d6f1cb48e a[1]~b[1]
thomask
parents:
diff changeset
29
e56d6f1cb48e a[1]~b[1]
thomask
parents:
diff changeset
30 return 0;
e56d6f1cb48e a[1]~b[1]
thomask
parents:
diff changeset
31 }
e56d6f1cb48e a[1]~b[1]
thomask
parents:
diff changeset
32