annotate run/c/creal_28_B.d @ 1489:b8c0195059d9

changed nntp: URLs to http: URLs
author thomask
date Mon, 09 Apr 2007 13:47:01 +0000
parents f4e98d870b57
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
744
d64391ac2148 bulk catch up
thomask
parents:
diff changeset
1 // $HeadURL$
d64391ac2148 bulk catch up
thomask
parents:
diff changeset
2 // $Date$
d64391ac2148 bulk catch up
thomask
parents:
diff changeset
3 // $Author$
d64391ac2148 bulk catch up
thomask
parents:
diff changeset
4
d64391ac2148 bulk catch up
thomask
parents:
diff changeset
5 // @author@ Tiago Gasiba <tiago.gasiba@gmail.com>
d64391ac2148 bulk catch up
thomask
parents:
diff changeset
6 // @date@ 2005-11-07
1489
b8c0195059d9 changed nntp: URLs to http: URLs
thomask
parents: 1090
diff changeset
7 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=5343
744
d64391ac2148 bulk catch up
thomask
parents:
diff changeset
8
d64391ac2148 bulk catch up
thomask
parents:
diff changeset
9 module dstress.run.c.creal_28_B;
d64391ac2148 bulk catch up
thomask
parents:
diff changeset
10
d64391ac2148 bulk catch up
thomask
parents:
diff changeset
11 void foo(creal[] data){
d64391ac2148 bulk catch up
thomask
parents:
diff changeset
12 data[0] -= data[0].re;
d64391ac2148 bulk catch up
thomask
parents:
diff changeset
13 }
d64391ac2148 bulk catch up
thomask
parents:
diff changeset
14
d64391ac2148 bulk catch up
thomask
parents:
diff changeset
15 int main(){
d64391ac2148 bulk catch up
thomask
parents:
diff changeset
16 creal[1] d;
920
5511f9277078 testcase review
thomask
parents: 744
diff changeset
17 d[0] = 1.0L + 2.0Li;
744
d64391ac2148 bulk catch up
thomask
parents:
diff changeset
18
d64391ac2148 bulk catch up
thomask
parents:
diff changeset
19 foo(d);
d64391ac2148 bulk catch up
thomask
parents:
diff changeset
20
1090
f4e98d870b57 pre DMD-0.163 review
thomask
parents: 920
diff changeset
21 if(d[0].im != 2.0L){
f4e98d870b57 pre DMD-0.163 review
thomask
parents: 920
diff changeset
22 assert(0);
f4e98d870b57 pre DMD-0.163 review
thomask
parents: 920
diff changeset
23 }
f4e98d870b57 pre DMD-0.163 review
thomask
parents: 920
diff changeset
24 if(d[0].re != 0.0L){
f4e98d870b57 pre DMD-0.163 review
thomask
parents: 920
diff changeset
25 assert(0);
f4e98d870b57 pre DMD-0.163 review
thomask
parents: 920
diff changeset
26 }
744
d64391ac2148 bulk catch up
thomask
parents:
diff changeset
27
d64391ac2148 bulk catch up
thomask
parents:
diff changeset
28 return 0;
d64391ac2148 bulk catch up
thomask
parents:
diff changeset
29 }