141
|
1 // $HeadURL$
|
|
2 // $Date$
|
|
3 // $Author$
|
|
4
|
144
|
5 // @author@ Thomas Kuehne <thomas-dloop@kuehne.thisisspam.cn>
|
|
6 // @date@ 2004-11-17
|
|
7 // @uri@ news:u1gr62-kjv.ln1@kuehne.cn
|
1485
|
8 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=2288
|
144
|
9
|
141
|
10 // duplicate case "123" in switch statement
|
|
11
|
756
|
12 // __DSTRESS_ELINE__ 22
|
374
|
13
|
141
|
14 module dstress.nocompile.switch_10;
|
|
15
|
|
16 int main(){
|
|
17 char[] array = "123";
|
|
18 switch(array){
|
|
19 case "123":{
|
|
20 assert(0);
|
|
21 break;
|
|
22 }case "123":{
|
|
23 assert(1);
|
|
24 break;
|
|
25 }default:{
|
|
26 return -1; // dummy
|
|
27 }
|
|
28 }
|
|
29
|
|
30 }
|