Mercurial > projects > dstress
annotate nocompile/switch_11.d @ 756:9a121126b077
major "Torture" review
author | thomask |
---|---|
date | Sat, 03 Dec 2005 22:19:07 +0000 |
parents | f87ba6507260 |
children |
rev | line source |
---|---|
141 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 // multiple equal keys in a switch-case | |
6 | |
756 | 7 // __DSTRESS_ELINE__ 16 |
374 | 8 |
141 | 9 module dstress.nocompile.switch_11; |
10 | |
11 int main(){ | |
12 int i; | |
13 switch(i){ | |
14 case 0:{ | |
15 assert(0); | |
16 }case 0:{ | |
17 assert(1); | |
18 }default:{ | |
19 return -1; // dummy | |
20 } | |
21 } | |
22 | |
23 } |