Mercurial > projects > dstress
view nocompile/a/asm_offset_01_B.d @ 1265:236f0d02b8b9
32<->64 iasm fixes
author | thomask |
---|---|
date | Thu, 21 Dec 2006 08:58:06 +0000 |
parents | adf31c7a5127 |
children | 81222734adf3 |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // @author@ <lugaidster@gmail.com> // @date@ 2006-04-28 // @uri@ news:bug-116-3@http.d.puremagic.com/bugzilla/ // __DSTRESS_ELINE__ 24 module dstress.nocompile.a.asm_offset_01_B; version(D_InlineAsm_X86){ version = runTest; } version(runTest){ byte b; void main(){ static if(size_t.sizeof == 4){ asm{ mov EAX, offsetof b; } }else{ pragma(msg, "DSTRESS{ERROR}: unsupported pointer size"); static assert(0); } } }else{ pragma(msg, "DSTRESS{XFAIL}: no inline ASM support"); static assert(0); }