Mercurial > projects > dstress
annotate undefined/default_argument_11_B.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_B; | |
10 | |
11 int x; | |
12 | |
13 void test(inout int i = x){ | |
14 assert(i == 5); | |
15 } | |
16 | |
17 int main(){ | |
18 int i; | |
19 test(i); | |
20 | |
21 assert(i == 5); | |
22 | |
23 return 0; | |
24 } | |
25 |