annotate nocompile/switch_12.d @ 374:f87ba6507260

added missing meta-data
author thomask
date Thu, 31 Mar 2005 09:01:33 +0000
parents 0e1a3785ec97
children 9a121126b077
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
141
80cc53b2b7d9 1) extended double case switch tests
thomask
parents:
diff changeset
1 // $HeadURL$
80cc53b2b7d9 1) extended double case switch tests
thomask
parents:
diff changeset
2 // $Date$
80cc53b2b7d9 1) extended double case switch tests
thomask
parents:
diff changeset
3 // $Author$
80cc53b2b7d9 1) extended double case switch tests
thomask
parents:
diff changeset
4
144
0e1a3785ec97 1) added missing @url@/@uri@ tags
thomask
parents: 141
diff changeset
5 // @author@ Thomas Kuehne <thomas-dloop@kuehne.thisisspam.cn>
0e1a3785ec97 1) added missing @url@/@uri@ tags
thomask
parents: 141
diff changeset
6 // @date@ 2004-11-17
0e1a3785ec97 1) added missing @url@/@uri@ tags
thomask
parents: 141
diff changeset
7 // @uri@ news:u1gr62-kjv.ln1@kuehne.cn
0e1a3785ec97 1) added missing @url@/@uri@ tags
thomask
parents: 141
diff changeset
8 // @url@ nntp://digitalmars.com/digitalmars.D.bugs/2288
0e1a3785ec97 1) added missing @url@/@uri@ tags
thomask
parents: 141
diff changeset
9
141
80cc53b2b7d9 1) extended double case switch tests
thomask
parents:
diff changeset
10 // duplicate case "123" in switch statement
80cc53b2b7d9 1) extended double case switch tests
thomask
parents:
diff changeset
11
374
f87ba6507260 added missing meta-data
thomask
parents: 144
diff changeset
12 // __DSTRESS_ELINE__ 22
f87ba6507260 added missing meta-data
thomask
parents: 144
diff changeset
13
141
80cc53b2b7d9 1) extended double case switch tests
thomask
parents:
diff changeset
14 module dstress.nocompile.switch_12;
80cc53b2b7d9 1) extended double case switch tests
thomask
parents:
diff changeset
15
80cc53b2b7d9 1) extended double case switch tests
thomask
parents:
diff changeset
16 int main(){
80cc53b2b7d9 1) extended double case switch tests
thomask
parents:
diff changeset
17 wchar[] array = "123";
80cc53b2b7d9 1) extended double case switch tests
thomask
parents:
diff changeset
18 switch(array){
80cc53b2b7d9 1) extended double case switch tests
thomask
parents:
diff changeset
19 case "123":{
80cc53b2b7d9 1) extended double case switch tests
thomask
parents:
diff changeset
20 assert(0);
80cc53b2b7d9 1) extended double case switch tests
thomask
parents:
diff changeset
21 break;
80cc53b2b7d9 1) extended double case switch tests
thomask
parents:
diff changeset
22 }case "123":{
80cc53b2b7d9 1) extended double case switch tests
thomask
parents:
diff changeset
23 assert(1);
80cc53b2b7d9 1) extended double case switch tests
thomask
parents:
diff changeset
24 break;
80cc53b2b7d9 1) extended double case switch tests
thomask
parents:
diff changeset
25 }default:{
80cc53b2b7d9 1) extended double case switch tests
thomask
parents:
diff changeset
26 return -1; // dummy
80cc53b2b7d9 1) extended double case switch tests
thomask
parents:
diff changeset
27 }
80cc53b2b7d9 1) extended double case switch tests
thomask
parents:
diff changeset
28 }
80cc53b2b7d9 1) extended double case switch tests
thomask
parents:
diff changeset
29
80cc53b2b7d9 1) extended double case switch tests
thomask
parents:
diff changeset
30 }