annotate nocompile/switch_12.d @ 144:0e1a3785ec97

1) added missing @url@/@uri@ tags 2) added dchar tests 3) cleanup of opPos, opNeg 4) renamed "classes" -> "class"
author thomask
date Wed, 17 Nov 2004 12:48:16 +0000
parents 80cc53b2b7d9
children f87ba6507260
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
80cc53b2b7d9 1) extended double case switch tests
thomask
parents:
diff changeset
12 module dstress.nocompile.switch_12;
80cc53b2b7d9 1) extended double case switch tests
thomask
parents:
diff changeset
13
80cc53b2b7d9 1) extended double case switch tests
thomask
parents:
diff changeset
14 int main(){
80cc53b2b7d9 1) extended double case switch tests
thomask
parents:
diff changeset
15 wchar[] array = "123";
80cc53b2b7d9 1) extended double case switch tests
thomask
parents:
diff changeset
16 switch(array){
80cc53b2b7d9 1) extended double case switch tests
thomask
parents:
diff changeset
17 case "123":{
80cc53b2b7d9 1) extended double case switch tests
thomask
parents:
diff changeset
18 assert(0);
80cc53b2b7d9 1) extended double case switch tests
thomask
parents:
diff changeset
19 break;
80cc53b2b7d9 1) extended double case switch tests
thomask
parents:
diff changeset
20 }case "123":{
80cc53b2b7d9 1) extended double case switch tests
thomask
parents:
diff changeset
21 assert(1);
80cc53b2b7d9 1) extended double case switch tests
thomask
parents:
diff changeset
22 break;
80cc53b2b7d9 1) extended double case switch tests
thomask
parents:
diff changeset
23 }default:{
80cc53b2b7d9 1) extended double case switch tests
thomask
parents:
diff changeset
24 return -1; // dummy
80cc53b2b7d9 1) extended double case switch tests
thomask
parents:
diff changeset
25 }
80cc53b2b7d9 1) extended double case switch tests
thomask
parents:
diff changeset
26 }
80cc53b2b7d9 1) extended double case switch tests
thomask
parents:
diff changeset
27
80cc53b2b7d9 1) extended double case switch tests
thomask
parents:
diff changeset
28 }