annotate run/a/array_initialization_25_A.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 59e5e888b203
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1166
59e5e888b203 added basic array literals tests
thomask
parents:
diff changeset
1 // $HeadURL$
59e5e888b203 added basic array literals tests
thomask
parents:
diff changeset
2 // $Date$
59e5e888b203 added basic array literals tests
thomask
parents:
diff changeset
3 // $Author$
59e5e888b203 added basic array literals tests
thomask
parents:
diff changeset
4
59e5e888b203 added basic array literals tests
thomask
parents:
diff changeset
5 module dstress.run.a.array_initialization_25_A;
59e5e888b203 added basic array literals tests
thomask
parents:
diff changeset
6
59e5e888b203 added basic array literals tests
thomask
parents:
diff changeset
7 int main(){
59e5e888b203 added basic array literals tests
thomask
parents:
diff changeset
8 int[] a;
59e5e888b203 added basic array literals tests
thomask
parents:
diff changeset
9 a = [0, 1, 2];
59e5e888b203 added basic array literals tests
thomask
parents:
diff changeset
10
59e5e888b203 added basic array literals tests
thomask
parents:
diff changeset
11 if(a.length != 3){
59e5e888b203 added basic array literals tests
thomask
parents:
diff changeset
12 assert(0);
59e5e888b203 added basic array literals tests
thomask
parents:
diff changeset
13 }
59e5e888b203 added basic array literals tests
thomask
parents:
diff changeset
14 if((a[0] != 0) || (a[1] != 1) || (a[2] != 2)){
59e5e888b203 added basic array literals tests
thomask
parents:
diff changeset
15 assert(0);
59e5e888b203 added basic array literals tests
thomask
parents:
diff changeset
16 }
59e5e888b203 added basic array literals tests
thomask
parents:
diff changeset
17
59e5e888b203 added basic array literals tests
thomask
parents:
diff changeset
18 return 0;
59e5e888b203 added basic array literals tests
thomask
parents:
diff changeset
19 }