annotate run/i/inline_15_A.d @ 1489:b8c0195059d9

changed nntp: URLs to http: URLs
author thomask
date Mon, 09 Apr 2007 13:47:01 +0000
parents 9dcac8d4e97f
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
695
85543154e101 John C <johnch_atms@hotmail.com>
thomask
parents:
diff changeset
1 // $HeadURL$
85543154e101 John C <johnch_atms@hotmail.com>
thomask
parents:
diff changeset
2 // $Date$
85543154e101 John C <johnch_atms@hotmail.com>
thomask
parents:
diff changeset
3 // $Author$
85543154e101 John C <johnch_atms@hotmail.com>
thomask
parents:
diff changeset
4
85543154e101 John C <johnch_atms@hotmail.com>
thomask
parents:
diff changeset
5 // @author@ John C <johnch_atms@hotmail.com>
85543154e101 John C <johnch_atms@hotmail.com>
thomask
parents:
diff changeset
6 // @date@ 2005-09-30
1489
b8c0195059d9 changed nntp: URLs to http: URLs
thomask
parents: 1091
diff changeset
7 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=5100
695
85543154e101 John C <johnch_atms@hotmail.com>
thomask
parents:
diff changeset
8
85543154e101 John C <johnch_atms@hotmail.com>
thomask
parents:
diff changeset
9 module dstress.run.i.inline_15_A;
85543154e101 John C <johnch_atms@hotmail.com>
thomask
parents:
diff changeset
10
85543154e101 John C <johnch_atms@hotmail.com>
thomask
parents:
diff changeset
11 int[] toArray(int[] params ...) {
1091
9dcac8d4e97f post DMD-0.163 review
thomask
parents: 695
diff changeset
12 return params.dup;
695
85543154e101 John C <johnch_atms@hotmail.com>
thomask
parents:
diff changeset
13 }
85543154e101 John C <johnch_atms@hotmail.com>
thomask
parents:
diff changeset
14
85543154e101 John C <johnch_atms@hotmail.com>
thomask
parents:
diff changeset
15 int[] values;
85543154e101 John C <johnch_atms@hotmail.com>
thomask
parents:
diff changeset
16
85543154e101 John C <johnch_atms@hotmail.com>
thomask
parents:
diff changeset
17 void ensure() {
85543154e101 John C <johnch_atms@hotmail.com>
thomask
parents:
diff changeset
18 values = toArray(1, 2, 3);
85543154e101 John C <johnch_atms@hotmail.com>
thomask
parents:
diff changeset
19 }
85543154e101 John C <johnch_atms@hotmail.com>
thomask
parents:
diff changeset
20
85543154e101 John C <johnch_atms@hotmail.com>
thomask
parents:
diff changeset
21 int main(){
85543154e101 John C <johnch_atms@hotmail.com>
thomask
parents:
diff changeset
22 ensure();
85543154e101 John C <johnch_atms@hotmail.com>
thomask
parents:
diff changeset
23 assert(values.length==3);
85543154e101 John C <johnch_atms@hotmail.com>
thomask
parents:
diff changeset
24 assert(values[0]==1);
85543154e101 John C <johnch_atms@hotmail.com>
thomask
parents:
diff changeset
25 assert(values[1]==2);
85543154e101 John C <johnch_atms@hotmail.com>
thomask
parents:
diff changeset
26 assert(values[2]==3);
85543154e101 John C <johnch_atms@hotmail.com>
thomask
parents:
diff changeset
27 return 0;
1091
9dcac8d4e97f post DMD-0.163 review
thomask
parents: 695
diff changeset
28 }