view compile/a/asm_01_M.d @ 1396:35d813a29e8f

div. inline asm fixes
author thomask
date Thu, 08 Mar 2007 16:23:28 +0000
parents daef239f37cf
children
line wrap: on
line source

// $HeadURL$
// $Date$
// $Author$

// @author@	<fvbommel@wxs.nl>
// @date@	2006-07-01
// @uri@	http://d.puremagic.com/issues/show_bug.cgi?id=233

module dstress.compile.a.asm_01_M;

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

version(runTest){
	void foo(){
	}

	void test(){
		for(;;){
			asm {
				nop;
			}
			foo();
		}
	}
}else{
	pragma(msg, "DSTRESS{XFAIL}: no inline ASM support");
	static assert(0);
}