Mercurial > projects > dstress
view run/v/variadic_argument_08_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 | 9ff816464931 |
children |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // @author@ Neil Santos <Neil_member@pathlink.com> // @date@ 2005-09-27 // @uri@ news:dh9sf7$268e$1@digitaldaemon.com module dstress.run.v.variadic_argument_08_A; int status; void foo (char[][] args ...){ status = 1; } void bar (char[][] args ...){ status = 2; } int main () { char[] a; char[] b; foo (a); assert(status == 1); bar (b); assert(status == 2); return 0; }