annotate run/a/array_initialization_20_C.d @ 1489:b8c0195059d9

changed nntp: URLs to http: URLs
author thomask
date Mon, 09 Apr 2007 13:47:01 +0000
parents 03b5056496f1
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
758
a5714ec82ba6 Thomas Kuehne <thomas-dloop@kuehne.THISISSPAM.cn>
thomask
parents:
diff changeset
1 // $HeadURL$
a5714ec82ba6 Thomas Kuehne <thomas-dloop@kuehne.THISISSPAM.cn>
thomask
parents:
diff changeset
2 // $Date$
a5714ec82ba6 Thomas Kuehne <thomas-dloop@kuehne.THISISSPAM.cn>
thomask
parents:
diff changeset
3 // $Author$
a5714ec82ba6 Thomas Kuehne <thomas-dloop@kuehne.THISISSPAM.cn>
thomask
parents:
diff changeset
4
a5714ec82ba6 Thomas Kuehne <thomas-dloop@kuehne.THISISSPAM.cn>
thomask
parents:
diff changeset
5 // @author@ Thomas Kuehne <thomas-dloop@kuehne.THISISSPAM.cn>
a5714ec82ba6 Thomas Kuehne <thomas-dloop@kuehne.THISISSPAM.cn>
thomask
parents:
diff changeset
6 // @date@ 2005-12-03
1489
b8c0195059d9 changed nntp: URLs to http: URLs
thomask
parents: 1089
diff changeset
7 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=5731
758
a5714ec82ba6 Thomas Kuehne <thomas-dloop@kuehne.THISISSPAM.cn>
thomask
parents:
diff changeset
8
a5714ec82ba6 Thomas Kuehne <thomas-dloop@kuehne.THISISSPAM.cn>
thomask
parents:
diff changeset
9 module dstress.run.a.array_initialization_20_C;
a5714ec82ba6 Thomas Kuehne <thomas-dloop@kuehne.THISISSPAM.cn>
thomask
parents:
diff changeset
10
a5714ec82ba6 Thomas Kuehne <thomas-dloop@kuehne.THISISSPAM.cn>
thomask
parents:
diff changeset
11 typedef double X = 4.0;
a5714ec82ba6 Thomas Kuehne <thomas-dloop@kuehne.THISISSPAM.cn>
thomask
parents:
diff changeset
12
a5714ec82ba6 Thomas Kuehne <thomas-dloop@kuehne.THISISSPAM.cn>
thomask
parents:
diff changeset
13 int main(){
a5714ec82ba6 Thomas Kuehne <thomas-dloop@kuehne.THISISSPAM.cn>
thomask
parents:
diff changeset
14 X four = cast(X) 4.0;
1089
03b5056496f1 pre DMD-0.163 review
thomask
parents: 899
diff changeset
15
758
a5714ec82ba6 Thomas Kuehne <thomas-dloop@kuehne.THISISSPAM.cn>
thomask
parents:
diff changeset
16 X[] array;
a5714ec82ba6 Thomas Kuehne <thomas-dloop@kuehne.THISISSPAM.cn>
thomask
parents:
diff changeset
17 array.length = 1;
a5714ec82ba6 Thomas Kuehne <thomas-dloop@kuehne.THISISSPAM.cn>
thomask
parents:
diff changeset
18
899
1c1270e78fdb div. fixes
thomask
parents: 758
diff changeset
19 if(array[0] != four){
1c1270e78fdb div. fixes
thomask
parents: 758
diff changeset
20 assert(0);
1c1270e78fdb div. fixes
thomask
parents: 758
diff changeset
21 }
758
a5714ec82ba6 Thomas Kuehne <thomas-dloop@kuehne.THISISSPAM.cn>
thomask
parents:
diff changeset
22
a5714ec82ba6 Thomas Kuehne <thomas-dloop@kuehne.THISISSPAM.cn>
thomask
parents:
diff changeset
23 return 0;
a5714ec82ba6 Thomas Kuehne <thomas-dloop@kuehne.THISISSPAM.cn>
thomask
parents:
diff changeset
24 }