Mercurial > projects > dstress
annotate undefined/default_argument_11_A.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 | 549bdf42bf7d |
children |
rev | line source |
---|---|
876 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 // @author@ Unknown W. Brackets <unknown@simplemachines.org> | |
6 // @date@ 2006-02-19 | |
7 // @uri@ news:dtb7ee$gjq$1@digitaldaemon.com | |
8 | |
9 module dstress.undefined.default_argument_11_A; | |
10 | |
11 void test(inout int i = 5){ | |
12 assert(i == 5); | |
13 } | |
14 | |
15 int main(){ | |
16 int i; | |
17 test(i); | |
18 | |
19 assert(i == 5); | |
20 | |
21 return 0; | |
22 } | |
23 |