521
|
1 // $HeadURL$
|
|
2 // $Date$
|
|
3 // $Author$
|
|
4
|
|
5 // @author@ David Friedman <d3rdclsmail_a_@_t_earthlink_d_._t_net>
|
|
6 // @date@ 2005-05-03
|
1489
|
7 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=3881
|
521
|
8
|
|
9 module dstress.run.o.opDiv_07_B;
|
|
10
|
|
11 int main(){
|
525
|
12 float a = -1.0fi / 0.0fi;
|
521
|
13
|
|
14 ifloat b = -1.0fi;
|
|
15 ifloat c = 0.0fi;
|
525
|
16 float d;
|
521
|
17
|
|
18 void* X = &a;
|
|
19
|
|
20 d = b/c;
|
|
21 void* Y = &d;
|
|
22
|
|
23 assert((cast(int*)X)[0]==(cast(int*)Y)[0]);
|
|
24 return 0;
|
|
25 }
|