view run/slice_09.d @ 736:1e6afb94ce6d

updated meta data for Torture
author thomask
date Sat, 12 Nov 2005 07:28:46 +0000
parents f87ba6507260
children 38ea1bb385b6
line wrap: on
line source

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

// __DSTRESS_TORTURE_BLOCK__ -release
module dstress.run.slice_09;

int main(){
	bit[] a;
	a.length=2;
	a[] = true;
	assert(a[0]);
	assert(a[1]);
	
	bit[] b;
	b.length=2;
	assert(!b[0]);
	assert(!b[1]);

	try{
		b[1..2] = a[0..1];
	}catch(Exception e){
		return 0;
	}
	assert(0);
}