Mercurial > projects > dstress
annotate run/cast_05.d @ 1630:d0efa3ae5522 default tip
run/mini/naked_asm5: New x86_64 ABI passes the arguments in reverse order.
author | David Nadlinger <code@klickverbot.at> |
---|---|
date | Sat, 23 Apr 2011 22:57:32 +0200 |
parents | 6e4063f99377 |
children |
rev | line source |
---|---|
140 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
0 | 5 // @author@ Nick <Nick_member@pathlink.com> |
6 // @date@ 2004-08-06 | |
140 | 7 // @uri@ news:cf0mo2$rfi$1@digitaldaemon.com |
1487 | 8 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=1296 |
70
5f98d4a33d49
1) review of all test cases with unexpected results (except encoding and html/xml)
thomask
parents:
1
diff
changeset
|
9 |
5f98d4a33d49
1) review of all test cases with unexpected results (except encoding and html/xml)
thomask
parents:
1
diff
changeset
|
10 module dstress.run.cast_05; |
0 | 11 |
12 int main(){ | |
13 long l = cast(long) 12.0; | |
14 long L = 12L; | |
15 assert(l == L); | |
16 | |
17 ulong u = cast(ulong) 12.0; | |
18 ulong U = 12U; | |
19 assert(U == u); | |
20 | |
21 return 0; | |
22 } |