Mercurial > projects > dstress
diff run/c/creal_32_A.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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/c/creal_32_A.d Fri Mar 03 17:28:18 2006 +0000 @@ -0,0 +1,26 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Don Clugston <dac@nospam.com.au> +// @date@ 2006-03-02 +// @uri@ news:<du6chp$hub$1@digitaldaemon.com +// @WARNING@ direct use of phobos + +module dstress.run.c.creal_32_A; + +import std.math; + +int main(){ + creal a = -0.0 + 0.0i; + + if(!signbit(a.re)){ + assert(0); + } + + if(signbit(a.im)){ + assert(0); + } + + return 0; +}