Mercurial > projects > dstress
annotate run/c/case_04_B.d @ 1320:daef239f37cf
sed'ed replacement of new:...http.d.puremagic.com/issues/ with http://d.puremagic.com/issues/show_bug.cgi?...
author | thomask |
---|---|
date | Sun, 31 Dec 2006 19:59:08 +0000 |
parents | 2341845c9184 |
children |
rev | line source |
---|---|
1199
2341845c9184
[Issue 431] New: Invalid case selected when switching on a long
thomask
parents:
diff
changeset
|
1 // $HeadURL$ |
2341845c9184
[Issue 431] New: Invalid case selected when switching on a long
thomask
parents:
diff
changeset
|
2 // $Date$ |
2341845c9184
[Issue 431] New: Invalid case selected when switching on a long
thomask
parents:
diff
changeset
|
3 // $Author$ |
2341845c9184
[Issue 431] New: Invalid case selected when switching on a long
thomask
parents:
diff
changeset
|
4 |
2341845c9184
[Issue 431] New: Invalid case selected when switching on a long
thomask
parents:
diff
changeset
|
5 // @author@ Tomasz Stachowiak <h3r3tic@mat.uni.torun.pl> |
2341845c9184
[Issue 431] New: Invalid case selected when switching on a long
thomask
parents:
diff
changeset
|
6 // @date@ 2006-10-12 |
1320
daef239f37cf
sed'ed replacement of new:...http.d.puremagic.com/issues/ with http://d.puremagic.com/issues/show_bug.cgi?...
thomask
parents:
1199
diff
changeset
|
7 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=431 |
1199
2341845c9184
[Issue 431] New: Invalid case selected when switching on a long
thomask
parents:
diff
changeset
|
8 // @desc@ [Issue 431] New: Invalid case selected when switching on a long |
2341845c9184
[Issue 431] New: Invalid case selected when switching on a long
thomask
parents:
diff
changeset
|
9 |
2341845c9184
[Issue 431] New: Invalid case selected when switching on a long
thomask
parents:
diff
changeset
|
10 module dstress.run.c.case_04_B; |
2341845c9184
[Issue 431] New: Invalid case selected when switching on a long
thomask
parents:
diff
changeset
|
11 |
2341845c9184
[Issue 431] New: Invalid case selected when switching on a long
thomask
parents:
diff
changeset
|
12 int main() { |
2341845c9184
[Issue 431] New: Invalid case selected when switching on a long
thomask
parents:
diff
changeset
|
13 long foo = 4; |
2341845c9184
[Issue 431] New: Invalid case selected when switching on a long
thomask
parents:
diff
changeset
|
14 switch (foo) { |
2341845c9184
[Issue 431] New: Invalid case selected when switching on a long
thomask
parents:
diff
changeset
|
15 case 2: assert(false); break; |
2341845c9184
[Issue 431] New: Invalid case selected when switching on a long
thomask
parents:
diff
changeset
|
16 case 3: assert(false); break; |
2341845c9184
[Issue 431] New: Invalid case selected when switching on a long
thomask
parents:
diff
changeset
|
17 case 4: break; |
2341845c9184
[Issue 431] New: Invalid case selected when switching on a long
thomask
parents:
diff
changeset
|
18 case 5: assert(false); break; |
2341845c9184
[Issue 431] New: Invalid case selected when switching on a long
thomask
parents:
diff
changeset
|
19 default: assert(false); |
2341845c9184
[Issue 431] New: Invalid case selected when switching on a long
thomask
parents:
diff
changeset
|
20 } |
2341845c9184
[Issue 431] New: Invalid case selected when switching on a long
thomask
parents:
diff
changeset
|
21 |
2341845c9184
[Issue 431] New: Invalid case selected when switching on a long
thomask
parents:
diff
changeset
|
22 return 0; |
2341845c9184
[Issue 431] New: Invalid case selected when switching on a long
thomask
parents:
diff
changeset
|
23 } |