Mercurial > projects > dstress
view run/a/asm_lea_01_B.d @ 701:93c604903b9d
small iasm update
author | thomask |
---|---|
date | Wed, 05 Oct 2005 08:12:26 +0000 |
parents | |
children | 000adc086356 |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ module dstress.run.a.asm_lea_01_B; int main(){ version(D_InlineAsm){ ushort i; asm{ lea AX, i; mov i, AX; } assert(cast(ushort)&i == i); return 0; }else{ pragma(msg, "no Inline asm support"); static assert(0); } }