Mercurial > projects > dstress
annotate nocompile/switch_15.d @ 1593:a2c2122f2f66
Remove error line information for simple tests that may legitimately have
another line referenced in the error message.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Thu, 28 Aug 2008 17:30:16 +0200 |
parents | 9a121126b077 |
children |
rev | line source |
---|---|
141 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 // according to dmd-0.106's statement.html#switch | |
6 // only integers, char[] and wchar[] are allowed | |
7 | |
756 | 8 // __DSTRESS_ELINE__ 14 |
374 | 9 |
141 | 10 module dstress.nocompile.switch_15; |
11 | |
12 int main(){ | |
13 float f=0; | |
14 switch(f){ | |
15 case 0.0:{ | |
16 return 0; | |
17 }default:{ | |
18 assert(0); | |
19 } | |
20 } | |
21 | |
22 } |