Mercurial > projects > dstress
annotate run/const_22_D.d @ 756:9a121126b077
major "Torture" review
author | thomask |
---|---|
date | Sat, 03 Dec 2005 22:19:07 +0000 |
parents | ef1faa3f2bf7 |
children | b8c0195059d9 |
rev | line source |
---|---|
756 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
510 | 4 |
5 // @author@ zwang <nehzgnaw@gmail.com> | |
6 // @date@ 2005-05-05 | |
7 // @uri@ news:d5cj56$mfp$1@digitaldaemon.com | |
8 | |
9 module dstress.run.const_22_D; | |
10 | |
11 int main(){ | |
12 real d = 3.0L; | |
13 int i = cast(int)d; | |
14 assert(3 == i); | |
15 return 0; | |
16 } | |
17 |