Mercurial > projects > dstress
view run/a/asm_idiv_02_A.d @ 640:1fc8a80e4599
* added conditional jump tests
* extended basic integer math tests
author | thomask |
---|---|
date | Tue, 23 Aug 2005 22:23:55 +0000 |
parents | |
children | 861fe190f7ef |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ module dstress.run.a.asm_neg_02_A; int main(){ version(D_InlineAsm){ byte y = 2; asm{ lock; neg y; } assert(y == -2); return 0; }else{ pragma(msg, "no Inline asm support"); static assert(0); } }