160
|
1 // $HeadURL$
|
|
2 // $Date$
|
|
3 // $Author$
|
|
4
|
|
5 // @author@ Thomas Kuehne <thomas-dloop@kuehne.thisisspam.cn>
|
|
6 // @date@ 2004-11-17
|
|
7 // @uri@ news:l3hr62-qov.ln1@kuehne.cn
|
1487
|
8 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=2289
|
160
|
9
|
|
10 module dstress.run.switch_14;
|
|
11
|
|
12 int main(){
|
|
13 dchar[] array = "123";
|
|
14 switch(array){
|
|
15 case "12":{
|
|
16 assert(0);
|
|
17 }case "123":{
|
|
18 return 0;
|
|
19 }case "1234":{
|
|
20 assert(0);
|
|
21 }default:{
|
|
22 assert(0);
|
|
23 }
|
|
24 }
|
|
25 }
|