[Issue 291] New: assertion
Thomas Kuehne
thomas-dloop at kuehne.cn
Fri Aug 18 00:12:02 PDT 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
d-bugmail at puremagic.com schrieb am 2006-08-17:
> http://d.puremagic.com/issues/show_bug.cgi?id=291
> void main()
> {
> real a;
> // printf("%Lf",a); // prints "nan"
> assert(a==0.0); // unexpected PASS!
> }
>
> DMD v0.164; assertion correctly fails for double and float, but passes for real
> (really).
Added to DStress as
http://dstress.kuehne.cn/run/f/float_28_A.d
http://dstress.kuehne.cn/run/f/float_28_B.d
http://dstress.kuehne.cn/run/f/float_28_C.d
http://dstress.kuehne.cn/run/f/float_28_D.d
http://dstress.kuehne.cn/run/d/double_31_A.d
http://dstress.kuehne.cn/run/d/double_31_B.d
http://dstress.kuehne.cn/run/d/double_31_C.d
http://dstress.kuehne.cn/run/d/double_31_D.d
http://dstress.kuehne.cn/run/r/real_27_A.d
http://dstress.kuehne.cn/run/r/real_27_B.d
http://dstress.kuehne.cn/run/r/real_27_C.d
http://dstress.kuehne.cn/run/r/real_27_D.d
Thomas
-----BEGIN PGP SIGNATURE-----
iD8DBQFE5QoWLK5blCcjpWoRApCHAJ9V2EGQmZ56yTgm7jmDNkyJ8BXT9gCfWF/u
zOWzuZPjRlB/zKkVah37dzs=
=7/nH
-----END PGP SIGNATURE-----
More information about the Digitalmars-d-bugs
mailing list