view run/a/asm_05_A.d @ 1549:1e01d8b3e715

Dave <godaves@yahoo.com> 2006-11-26 http://d.puremagic.com/issues/show_bug.cgi?id=606
author thomask
date Mon, 23 Jul 2007 18:41:38 +0000
parents d8e1feb9e66e
children
line wrap: on
line source

// $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");
}