Mercurial > projects > dstress
view run/a/asm_03_B.d @ 1607:1bbcc6407d4b
Update module statement for renamed tests.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Mon, 13 Apr 2009 13:48:46 +0200 |
parents | 2ab1093d9008 |
children |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // @author@ Matti Niemenmaa <deewiant@gmail.com> // @date@ 2007-04-21 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=1173 // @desc@ [Issue 1173] Inline assembler: cannot use global scope operator // __DSTRESS_TORTURE_BLOCK__ -fPIC module dstress.run.a.asm_03_B; version(D_InlineAsm_X86){ version = runTest; }else version(D_InlineAsm_X86_64){ version = runTest; }else{ static assert(0, "DSTRESS{XFAIL}: no inline ASM support"); } version(runTest){ int x = 0x12AB_89EF; int main(){ int y = 0xCAFFEE; asm{ mov EAX, .x; mov y, EAX; } if(y != 0x12AB_89EF){ assert(0); } return 0; } }