Mercurial > projects > dstress
annotate run/s/string_postfix_06_C.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 | 36bedfa079e6 |
children |
rev | line source |
---|---|
736 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 module dstress.run.s.string_postfix_06_C; | |
6 | |
1560 | 7 int test(string a){ |
736 | 8 return a.length; |
9 } | |
10 | |
1560 | 11 int test(wstring a){ |
736 | 12 return a.length + 100; |
13 } | |
14 | |
1560 | 15 int test(dstring a){ |
736 | 16 return a.length + 10000; |
17 } | |
18 | |
19 int main(){ | |
20 assert(test("a"d "b"d)==10002); | |
21 return 0; | |
22 } |