view run/goto_07.d @ 1059:4468ecf152f1

<daiphoenix@lycos.com> 2006-03-14 news:bug-47-3@http.d.puremagic.com/bugzilla/
author thomask
date Thu, 29 Jun 2006 13:26:39 +0000
parents c18d6e8a712e
children
line wrap: on
line source

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

module dstress.run.goto_07;

int main(){

	int a = 1;
	if(0){
a:
		int b = 2;
		assert(b == 2);
	}else{
		assert(a == 1);
		goto a;
	}
	assert(a == 1);
	return 0;
}