Mercurial > projects > dstress
annotate run/c/creal_32_D.d @ 885:db221d4acc19
Don Clugston <dac@nospam.com.au>
2006-03-02
news:<du6chp$hub$1@digitaldaemon.com
author | thomask |
---|---|
date | Fri, 03 Mar 2006 17:28:18 +0000 |
parents | |
children | 5511f9277078 |
rev | line source |
---|---|
885 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 // @author@ Don Clugston <dac@nospam.com.au> | |
6 // @date@ 2006-03-02 | |
7 // @uri@ news:<du6chp$hub$1@digitaldaemon.com | |
8 // @WARNING@ direct use of phobos | |
9 | |
10 module dstress.run.c.creal_32_D; | |
11 | |
12 import std.math; | |
13 | |
14 int main(){ | |
15 creal a = -0.0 - 0.0i; | |
16 | |
17 if(!signbit(a.re)){ | |
18 assert(0); | |
19 } | |
20 | |
21 if(!signbit(a.im)){ | |
22 assert(0); | |
23 } | |
24 | |
25 return 0; | |
26 } |