Mercurial > projects > dstress
annotate run/cast_05.d @ 0:3269e4627918
init dstress
author | svnowner |
---|---|
date | Sat, 25 Sep 2004 22:33:30 +0000 |
parents | |
children | 3414705c41ac |
rev | line source |
---|---|
0 | 1 // $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/cast_05.d,v 1.2 2004/09/22 23:25:38 th Exp $ |
2 | |
3 // @author@ Nick <Nick_member@pathlink.com> | |
4 // @date@ 2004-08-06 | |
5 // @uri@ news://cf0mo2$rfi$1@digitaldaemon.com | |
6 | |
7 int main(){ | |
8 long l = cast(long) 12.0; | |
9 long L = 12L; | |
10 assert(l == L); | |
11 | |
12 ulong u = cast(ulong) 12.0; | |
13 ulong U = 12U; | |
14 assert(U == u); | |
15 | |
16 return 0; | |
17 } |