view run/c/catch_05_H.d @ 736:1e6afb94ce6d

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

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

// @author@	Nick <Nick_member@pathlink.com>
// @date@	2005-06-21
// @uri@	news:d99id2$fgj$1@digitaldaemon.com
// @desc@	foreach and throw/catch code generation

module dstress.run.c.catch_05_H;

void dummy(...){
}

int bb[char[]];

int main(){

	foreach(char[] s, int i; bb){
		dummy();
	}

	bb["a"] = 1;

	foreach(int b; bb){
		try{
			throw new Error("foo");
		}catch(Error e){
			assert(e);
			return 0;
		}catch{
			assert(0);
		}
		assert(0);
	}

	assert(0);
}