annotate run/a/array_initialization_20_B.d @ 1630:d0efa3ae5522 default tip

run/mini/naked_asm5: New x86_64 ABI passes the arguments in reverse order.
author David Nadlinger <code@klickverbot.at>
date Sat, 23 Apr 2011 22:57:32 +0200
parents b8c0195059d9
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_B;
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 byte X = 4;
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[] array;
a5714ec82ba6 Thomas Kuehne <thomas-dloop@kuehne.THISISSPAM.cn>
thomask
parents:
diff changeset
15 array.length = 2;
a5714ec82ba6 Thomas Kuehne <thomas-dloop@kuehne.THISISSPAM.cn>
thomask
parents:
diff changeset
16 array[] = 3;
a5714ec82ba6 Thomas Kuehne <thomas-dloop@kuehne.THISISSPAM.cn>
thomask
parents:
diff changeset
17 array.length = 3;
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] != 3){
1c1270e78fdb div. fixes
thomask
parents: 758
diff changeset
20 assert(0);
1c1270e78fdb div. fixes
thomask
parents: 758
diff changeset
21 }
1089
03b5056496f1 pre DMD-0.163 review
thomask
parents: 899
diff changeset
22
899
1c1270e78fdb div. fixes
thomask
parents: 758
diff changeset
23 if(array[1] != 3){
1c1270e78fdb div. fixes
thomask
parents: 758
diff changeset
24 assert(0);
1c1270e78fdb div. fixes
thomask
parents: 758
diff changeset
25 }
1089
03b5056496f1 pre DMD-0.163 review
thomask
parents: 899
diff changeset
26
899
1c1270e78fdb div. fixes
thomask
parents: 758
diff changeset
27 if(array[2] != 4){
1c1270e78fdb div. fixes
thomask
parents: 758
diff changeset
28 assert(0);
1c1270e78fdb div. fixes
thomask
parents: 758
diff changeset
29 }
758
a5714ec82ba6 Thomas Kuehne <thomas-dloop@kuehne.THISISSPAM.cn>
thomask
parents:
diff changeset
30
a5714ec82ba6 Thomas Kuehne <thomas-dloop@kuehne.THISISSPAM.cn>
thomask
parents:
diff changeset
31 return 0;
a5714ec82ba6 Thomas Kuehne <thomas-dloop@kuehne.THISISSPAM.cn>
thomask
parents:
diff changeset
32 }