Mercurial > projects > dstress
comparison compile/o/odd_bug_16_A.d @ 1505:b0e88ac8bc7e
[Issue 1145] bad codegen with ulong+float
Carlos Santander B. <csantander619@gmail.com>
2007-04-14
http://d.puremagic.com/issues/show_bug.cgi?id=1145
author | thomask |
---|---|
date | Mon, 23 Apr 2007 18:02:31 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
1504:805b24f2e33f | 1505:b0e88ac8bc7e |
---|---|
1 // $HeadURL$ | |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 // @author@ Carlos Santander B. <csantander619@gmail.com> | |
6 // @date@ 2007-04-14 | |
7 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=1145 | |
8 // @desc@ [Issue 1145] bad codegen with ulong+float | |
9 | |
10 module dstress.compile.o.odd_bug_16_A; | |
11 | |
12 ulong foo (){ | |
13 return cast(ulong) (1176576512UL + -2.0f); | |
14 } | |
15 | |
16 static assert(foo()==1176576510); |