Mercurial > projects > dstress
annotate run/switch_07.d @ 1586:a74f0139fc3d
Fix tests using typeof on types.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Thu, 21 Aug 2008 15:42:21 +0200 |
parents | f87ba6507260 |
children |
rev | line source |
---|---|
374 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 module dstress.run.switch_07; | |
0 | 6 |
7 int main(){ | |
8 char[] test="eins"; | |
9 | |
10 switch(test){ | |
11 case "null","drei":{ | |
12 assert(0); | |
13 case "eins":{ | |
14 assert(1); | |
15 break; | |
16 } | |
17 assert(0); | |
18 }case "vier":{ | |
19 assert(0); | |
20 } | |
21 } | |
22 | |
23 return 0; | |
24 } |