Mercurial > projects > dstress
annotate run/c/cast_30_B.d @ 1489:b8c0195059d9
changed nntp: URLs to http: URLs
author | thomask |
---|---|
date | Mon, 09 Apr 2007 13:47:01 +0000 |
parents | f4e98d870b57 |
children |
rev | line source |
---|---|
757 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 // @author@ Thomas Kuehne <thomas-dloop@kuehne.THISISSPAM.cn> | |
6 // @date@ 2005-12-03 | |
1489 | 7 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=5729 |
757 | 8 |
9 module dstress.run.c.cast_30_B; | |
10 | |
11 alias cdouble X; | |
12 | |
13 int main(){ | |
14 X four = cast(X) (4.0i + 0.4); | |
1090 | 15 |
757 | 16 assert(four.im == 4.0); |
17 assert(four.re == 0.4); | |
18 | |
19 return 0; | |
20 } |