view run/a/asm_shr_01_B.d @ 658:f87ac47ffa36

added some un-commited asm tests
author thomask
date Thu, 08 Sep 2005 07:32:03 +0000
parents
children a3d6bbc8dec0
line wrap: on
line source

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

module dstress.run.a.asm_shr_01_B;

int main(){	
	version(D_InlineAsm){
		ushort a = ushort.max;
		
		asm{
			shr a, 1;
		}
		
		assert(a == 0b0111_1111__1111_1111);
		
		return 0;
	}else{
		pragma(msg, "no Inline asm support");
		static assert(0);
	}
}