Mercurial > projects > dstress
view run/i/inout_02_A.d @ 1319:81222734adf3
sed'ed replacement of new:...http.d.puremagic.co... with http://d.puremagic.com/issues/show_bug.cgi?...
author | thomask |
---|---|
date | Sun, 31 Dec 2006 19:58:06 +0000 |
parents | ea0247788622 |
children | 20d8ee6523e1 |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // @author@ <sean@f4.ca> // @date@ 2006-03-05 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=13 module dstress.run.i.inout_02_A; version(D_InlineASM_X86){ version = runTest; } version(runTest){ void fn(inout byte val){ asm{ mov EAX, val; inc [EAX]; } } int main(){ byte b = 3; fn(b); if(b != 4){ assert(0); } return 0; } }else{ pragma(msg, "DSTRESS{XFAIL}: no inline ASM support"); static assert(0); }