Mercurial > projects > dstress
view run/d/debug_14_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 | 4a49d5a2169a |
children |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // @author@ Hasan Aljudy <hasan.aljudy@gmail.com> // @date@ 2007-02-23 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=1002 // @desc@ [Issue 1002] debug statement crashes at compile-time function execution module dstress.run.d.debug_14_A; dchar[] testd( dchar[] input ){ debug int x = 10; return "my"; } int main(){ static x = testd("hello"); if("my" != x){ assert(0); } return 0; }