view nocompile/goto_06.d @ 1536:89775df1607d

vtable can't be used as a template parameter
author thomask
date Mon, 07 May 2007 05:20:25 +0000
parents e38919011244
children
line wrap: on
line source

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

// __DSTRESS_ELINE__ 17

module dstress.nocompile.goto_06;

int main(){
	int i=1;
	switch(i){
		case 2:
			return 0;
		case 1:
			switch(i){
				case 1:
					goto case 3;
				default:
					assert(0);
			}
		default:
			assert(0);
	}

	switch(i){
		case 3:
			assert(0);
		default:
			assert(0);
	}
}