annotate run/nested_function_03.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 6e4063f99377
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
140
a33ad7189d21 1) news:// -> news:
thomask
parents: 111
diff changeset
1 // $HeadURL$
a33ad7189d21 1) news:// -> news:
thomask
parents: 111
diff changeset
2 // $Date$
a33ad7189d21 1) news:// -> news:
thomask
parents: 111
diff changeset
3 // $Author$
a33ad7189d21 1) news:// -> news:
thomask
parents: 111
diff changeset
4
111
24da167d3f07 svn maintenance
thomask
parents: 85
diff changeset
5 // @author@ Charlie <Charlie_member@pathlink.com>
24da167d3f07 svn maintenance
thomask
parents: 85
diff changeset
6 // @date@ 2004-07-17
140
a33ad7189d21 1) news:// -> news:
thomask
parents: 111
diff changeset
7 // @uri@ news:casnln$1oe1$1@digitaldaemon.com
1487
6e4063f99377 changed nntp: URLs to http: URLs
thomask
parents: 1386
diff changeset
8 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=551
111
24da167d3f07 svn maintenance
thomask
parents: 85
diff changeset
9
24da167d3f07 svn maintenance
thomask
parents: 85
diff changeset
10 module dstress.run.nested_function_03;
24da167d3f07 svn maintenance
thomask
parents: 85
diff changeset
11
24da167d3f07 svn maintenance
thomask
parents: 85
diff changeset
12 void fn( in char[] buf ){
24da167d3f07 svn maintenance
thomask
parents: 85
diff changeset
13 void fn2(){
24da167d3f07 svn maintenance
thomask
parents: 85
diff changeset
14 assert(buf.length==0);
1386
7a397590d6e0 64-bit fixes
thomask
parents: 1383
diff changeset
15 assert(buf.sizeof==2 * size_t.sizeof);
111
24da167d3f07 svn maintenance
thomask
parents: 85
diff changeset
16 }
24da167d3f07 svn maintenance
thomask
parents: 85
diff changeset
17 fn2();
24da167d3f07 svn maintenance
thomask
parents: 85
diff changeset
18 assert(buf.length==0);
1386
7a397590d6e0 64-bit fixes
thomask
parents: 1383
diff changeset
19 assert(buf.sizeof== 2 * size_t.sizeof);
111
24da167d3f07 svn maintenance
thomask
parents: 85
diff changeset
20 }
24da167d3f07 svn maintenance
thomask
parents: 85
diff changeset
21
24da167d3f07 svn maintenance
thomask
parents: 85
diff changeset
22 int main(){
24da167d3f07 svn maintenance
thomask
parents: 85
diff changeset
23 char[] buf;
24da167d3f07 svn maintenance
thomask
parents: 85
diff changeset
24 assert(buf.length==0);
1386
7a397590d6e0 64-bit fixes
thomask
parents: 1383
diff changeset
25 assert(buf.sizeof== 2 * size_t.sizeof);
111
24da167d3f07 svn maintenance
thomask
parents: 85
diff changeset
26 fn( buf );
24da167d3f07 svn maintenance
thomask
parents: 85
diff changeset
27 return 0;
24da167d3f07 svn maintenance
thomask
parents: 85
diff changeset
28 }