Mercurial > projects > dstress
view nocompile/a/asm_offset_01_B.d @ 1393:9216c4646e94
div. inline asm fixes
author | thomask |
---|---|
date | Thu, 08 Mar 2007 16:21:38 +0000 |
parents | 81222734adf3 |
children |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // @author@ <lugaidster@gmail.com> // @date@ 2006-04-28 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=116 // __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 x86 asm support"); static assert(0); }