view run/escape_hex_string_02.d @ 1626:e160bfec54d5

add test
author Moritz Warning <moritzwarning@web.de>
date Thu, 06 Jan 2011 15:52:55 +0100
parents 36bedfa079e6
children
line wrap: on
line source

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

module dstress.run.escape_hex__string_02;

int main(){
	string x=x" 1 2
a
	f";
	assert(x.length==2);
	assert(x[0]==0x12);
	assert(x[1]==0xAF);
	return 0;
}