comparison run/goto_03.d @ 184:2f17af7c6359

extended goto tests
author thomask
date Thu, 09 Dec 2004 06:21:54 +0000
parents
children
comparison
equal deleted inserted replaced
183:1c473946386f 184:2f17af7c6359
1 // $HeadURL$
2 // $Date$
3 // $Author$
4
5 module dstress.run.goto_03;
6
7 int main(){
8 int i=1;
9 switch(i){
10 case 0:
11 if(i==9){
12 return 0;
13 }
14 assert(0);
15 case 1:
16 i=9;
17 goto case 0;
18 assert(0);
19 case 2:
20 assert(0);
21 default:
22 assert(0);
23 }
24 }