annotate run/length_06.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 472d7e8b2274
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
304
472d7e8b2274 added array[$] tests
thomask
parents:
diff changeset
1 // $HeadURL$
472d7e8b2274 added array[$] tests
thomask
parents:
diff changeset
2 // $Date$
472d7e8b2274 added array[$] tests
thomask
parents:
diff changeset
3 // $Author$
472d7e8b2274 added array[$] tests
thomask
parents:
diff changeset
4
472d7e8b2274 added array[$] tests
thomask
parents:
diff changeset
5 module dstress.run.length_06;
472d7e8b2274 added array[$] tests
thomask
parents:
diff changeset
6
472d7e8b2274 added array[$] tests
thomask
parents:
diff changeset
7 int main(){
472d7e8b2274 added array[$] tests
thomask
parents:
diff changeset
8 int[3] array;
472d7e8b2274 added array[$] tests
thomask
parents:
diff changeset
9 array[0]=0;
472d7e8b2274 added array[$] tests
thomask
parents:
diff changeset
10 array[1]=2;
472d7e8b2274 added array[$] tests
thomask
parents:
diff changeset
11 array[2]=0;
472d7e8b2274 added array[$] tests
thomask
parents:
diff changeset
12 assert(array[$-2]==2);
472d7e8b2274 added array[$] tests
thomask
parents:
diff changeset
13 return 0;
472d7e8b2274 added array[$] tests
thomask
parents:
diff changeset
14 }