Mercurial > projects > dstress
diff run/a/asm_05_A.d @ 1542:d8e1feb9e66e
[Issue 1152] Inline assembler: cannot use properties of types
Matti Niemenmaa (Deewiant) <deewiant@gmail.com>
2007-05-31
http://d.puremagic.com/issues/show_bug.cgi?id=1152
author | thomask |
---|---|
date | Sun, 01 Jul 2007 13:19:07 +0000 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/a/asm_05_A.d Sun Jul 01 13:19:07 2007 +0000 @@ -0,0 +1,34 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Matti Niemenmaa (Deewiant) <deewiant@gmail.com> +// @date@ 2007-05-31 +// @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=1152 +// @desc@ [Issue 1152] Inline assembler: cannot use properties of types + +module dstress.run.a.asm_05_A; + +version(D_InlineAsm_X86){ + version = runTest; +}else version(D_InlineAsm_X86_64){ + version = runTest; +} + +version(runTest){ + int main(){ + int i = 1; + + asm{ + mov i, i.max; + } + + if(0x7FFF_FFFF != i){ + assert(0); + } + + return 0; + } +}else{ + static assert(0, "DSTRESS{XFAIL}: no inline x86 ASM support"); +}