annotate run/return_01.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 40336fe41235
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
188
40336fe41235 added return test for void functions
thomask
parents:
diff changeset
1 // $HeadURL$
40336fe41235 added return test for void functions
thomask
parents:
diff changeset
2 // $Date$
40336fe41235 added return test for void functions
thomask
parents:
diff changeset
3 // $Author$
40336fe41235 added return test for void functions
thomask
parents:
diff changeset
4
40336fe41235 added return test for void functions
thomask
parents:
diff changeset
5 module dstress.run.return_01;
40336fe41235 added return test for void functions
thomask
parents:
diff changeset
6
40336fe41235 added return test for void functions
thomask
parents:
diff changeset
7 int dummyJob;
40336fe41235 added return test for void functions
thomask
parents:
diff changeset
8 int dummy(){
40336fe41235 added return test for void functions
thomask
parents:
diff changeset
9 return ++dummyJob;
40336fe41235 added return test for void functions
thomask
parents:
diff changeset
10 }
40336fe41235 added return test for void functions
thomask
parents:
diff changeset
11
40336fe41235 added return test for void functions
thomask
parents:
diff changeset
12 void test(){
40336fe41235 added return test for void functions
thomask
parents:
diff changeset
13 return dummy();
40336fe41235 added return test for void functions
thomask
parents:
diff changeset
14 }
40336fe41235 added return test for void functions
thomask
parents:
diff changeset
15
40336fe41235 added return test for void functions
thomask
parents:
diff changeset
16 int main(){
40336fe41235 added return test for void functions
thomask
parents:
diff changeset
17 test();
40336fe41235 added return test for void functions
thomask
parents:
diff changeset
18 return dummyJob-1;
40336fe41235 added return test for void functions
thomask
parents:
diff changeset
19 }