annotate nocompile/cast_23.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
323
c8c5c7a82c94 array - int
thomask
parents:
diff changeset
1 // $HeadURL$
c8c5c7a82c94 array - int
thomask
parents:
diff changeset
2 // $Date$
c8c5c7a82c94 array - int
thomask
parents:
diff changeset
3 // $Author$
c8c5c7a82c94 array - int
thomask
parents:
diff changeset
4
c8c5c7a82c94 array - int
thomask
parents:
diff changeset
5 // @author@ h3r3tic
c8c5c7a82c94 array - int
thomask
parents:
diff changeset
6 // @date@ 2005-03-18
1489
b8c0195059d9 changed nntp: URLs to http: URLs
thomask
parents: 338
diff changeset
7 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=3234
323
c8c5c7a82c94 array - int
thomask
parents:
diff changeset
8
338
1f6cf5ccfbc9 1) updated rules to dmd-0.119
thomask
parents: 323
diff changeset
9 // __DSTRESS_ELINE__ 16
323
c8c5c7a82c94 array - int
thomask
parents:
diff changeset
10
c8c5c7a82c94 array - int
thomask
parents:
diff changeset
11 module dstress.nocompile.cast_23;
c8c5c7a82c94 array - int
thomask
parents:
diff changeset
12
c8c5c7a82c94 array - int
thomask
parents:
diff changeset
13 int main(){
c8c5c7a82c94 array - int
thomask
parents:
diff changeset
14 int[10] arr;
c8c5c7a82c94 array - int
thomask
parents:
diff changeset
15 int *p = &arr[5];
c8c5c7a82c94 array - int
thomask
parents:
diff changeset
16 cast(uint)(p - arr);
c8c5c7a82c94 array - int
thomask
parents:
diff changeset
17 return 0;
c8c5c7a82c94 array - int
thomask
parents:
diff changeset
18 }