Mercurial > projects > dstress
view run/o/odd_bug_16_B.d @ 1550:f46f0b6ed2d1
[Issue 627] Concatenation of strings to string arrays with ~ corrupts data
Matti Niemenmaa <deewiant@gmail.com>
2006-12-02
http://d.puremagic.com/issues/show_bug.cgi?id=627
author | thomask |
---|---|
date | Mon, 23 Jul 2007 18:42:04 +0000 |
parents | b0e88ac8bc7e |
children |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // @author@ Carlos Santander B. <csantander619@gmail.com> // @date@ 2007-04-14 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=1145 // @desc@ [Issue 1145] bad codegen with ulong+float module dstress.run.o.odd_bug_16_B; ulong foo (){ return cast(ulong) (1176576512UL + -2.0f); } int main(){ if(foo() != 1176576510){ assert(0); } return 0; }