view run/a/asm_05_B.d @ 1572:169ba9b6cb5d

[Issue 1013] Invalid code generated for naked functions with (u)long arguments <madou@madou.org> 2007-03-01 http://d.puremagic.com/issues/show_bug.cgi?id=1013
author thomask
date Thu, 21 Feb 2008 15:18:50 +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_B;

version(D_InlineAsm_X86){
	version = runTest;
}else version(D_InlineAsm_X86_64){
	version = runTest;
}

version(runTest){
	int main(){
		int i = 1;

		asm{
			mov i, int.max; 
		}

		if(0x7FFF_FFFF != i){
			assert(0);
		}

		return 0;
	}
}else{
	static assert(0, "DSTRESS{XFAIL}: no inline x86 ASM support");
}