Mercurial > projects > dstress
view run/b/bug_type_308_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 | 81222734adf3 |
children |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // @author@ <clugdbug@yahoo.com.au> // @date@ 2006-04-04 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=84 module dstress.run.b.bug_type_308_A; int main() { int [3][3] x; x[1][1 .. 3] = 1; if(x[0][0] != 0){ assert(0); } if(x[0][1] != 0){ assert(0); } if(x[0][2] != 0){ assert(0); } if(x[1][0] != 0){ assert(0); } if(x[1][1] != 1){ assert(0); } if(x[1][2] != 1){ assert(0); } if(x[2][0] != 0){ assert(0); } if(x[2][1] != 0){ assert(0); } if(x[2][2] != 0){ assert(0); } return 0; }