Mercurial > projects > dstress
annotate run/slice_02.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 | f87ba6507260 |
children |
rev | line source |
---|---|
374 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
179 | 5 // @author@ Stewart Gordon <smjg_1998@yahoo.com> |
2 | 6 // @date@ 2004-09-15 |
7 | |
374 | 8 module dstress.run.slice_02; |
9 | |
2 | 10 int main(){ |
11 char[] array = new char[4]; | |
12 | |
13 array[]='a'; | |
14 assert(array[0]=='a'); | |
15 assert(array[1]=='a'); | |
16 assert(array[2]=='a'); | |
17 assert(array[3]=='a'); | |
18 | |
19 return 0; | |
20 } |