annotate run/cast_14.d @ 1576:b3e16c86558e

[Issue 1398] New: GDC doesn't generate correct code <mariusmuja@gmail.com> 2007-08-04 http://d.puremagic.com/issues/show_bug.cgi?id=1398
author thomask
date Thu, 21 Feb 2008 15:20:08 +0000
parents d3a3e0c251d8
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
240
7aa29e681c0a bulk offline update
thomask
parents:
diff changeset
1 // $HeadURL$
7aa29e681c0a bulk offline update
thomask
parents:
diff changeset
2 // $Date$
7aa29e681c0a bulk offline update
thomask
parents:
diff changeset
3 // $Author$
7aa29e681c0a bulk offline update
thomask
parents:
diff changeset
4
7aa29e681c0a bulk offline update
thomask
parents:
diff changeset
5 // @author@ Russ Lewis <spamhole-2001-07-16@deming-os.org>
7aa29e681c0a bulk offline update
thomask
parents:
diff changeset
6 // @date@ 2005-01-18
7aa29e681c0a bulk offline update
thomask
parents:
diff changeset
7 // @uri@ news:csk4ef$2njc$1@digitaldaemon.com
1384
d3a3e0c251d8 nntp: -> http:
thomask
parents: 1383
diff changeset
8 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=2719
240
7aa29e681c0a bulk offline update
thomask
parents:
diff changeset
9
7aa29e681c0a bulk offline update
thomask
parents:
diff changeset
10 module dstress.run.cast_14;
7aa29e681c0a bulk offline update
thomask
parents:
diff changeset
11
7aa29e681c0a bulk offline update
thomask
parents:
diff changeset
12 int main(){
7aa29e681c0a bulk offline update
thomask
parents:
diff changeset
13 float f = 1.0;
7aa29e681c0a bulk offline update
thomask
parents:
diff changeset
14 ulong l = cast(ulong) f;
7aa29e681c0a bulk offline update
thomask
parents:
diff changeset
15 assert( l == 1);
7aa29e681c0a bulk offline update
thomask
parents:
diff changeset
16 return 0;
7aa29e681c0a bulk offline update
thomask
parents:
diff changeset
17 }