Mercurial > projects > dstress
annotate run/s/switch_24_C.d @ 1488:1ee9a0dd42d9
changed nntp: URLs to http: URLs
author | thomask |
---|---|
date | Mon, 09 Apr 2007 12:29:50 +0000 |
parents | 0c9905dc4158 |
children |
rev | line source |
---|---|
1454 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 // @author@ BCS <ao@pathlink.com> | |
6 // @date@ 2007-03-24 | |
1488 | 7 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=10738 |
1454 | 8 // @desc@ switch bug |
9 | |
10 module dstress.run.s.switch_24_C; | |
11 | |
12 int main(){ | |
13 int x = 0; | |
14 | |
15 switch("#!"){ | |
16 case "#!": | |
17 x++; | |
18 break; | |
19 default: | |
20 assert(0); | |
21 break; | |
22 } | |
23 | |
24 if(1 != x){ | |
25 assert(0); | |
26 } | |
27 | |
28 return 0; | |
29 } | |
30 |