Mercurial > projects > dstress
annotate run/v/variadic_argument_12_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 | 1c98e13430f1 |
children |
rev | line source |
---|---|
859 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 // @author@ Fredrik Olsson <peylow@treyst.se> | |
6 // @date@ 2006-01-26 | |
7 // @uri@ news:drakns$15ot$2@digitaldaemon.com | |
8 | |
9 module dstress.run.v.variadic_argument_12_A; | |
10 | |
11 class Foo { | |
12 uint args; | |
13 | |
14 this(...) { | |
15 args = _arguments.length; | |
16 } | |
17 } | |
18 | |
19 int main() { | |
20 Foo foo = new Foo(1, 2, 3); | |
21 if(foo.args == 3){ | |
22 return 0; | |
23 } | |
24 } |