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__ 24
|
374
|
13
|
141
|
14 module dstress.nocompile.switch_09;
|
|
15
|
|
16 const char[] c = "123";
|
|
17
|
|
18 int main(){
|
|
19 char[] array = "123";
|
|
20 switch(array){
|
|
21 case "123":{
|
|
22 assert(0);
|
|
23 break;
|
|
24 }case c:{
|
|
25 assert(1);
|
|
26 break;
|
|
27 }default:{
|
|
28 return -1; // dummy
|
|
29 }
|
|
30 }
|
|
31
|
|
32 }
|