Mercurial > projects > dstress
annotate run/r/return_09_B.d @ 1320:daef239f37cf
sed'ed replacement of new:...http.d.puremagic.com/issues/ with http://d.puremagic.com/issues/show_bug.cgi?...
author | thomask |
---|---|
date | Sun, 31 Dec 2006 19:59:08 +0000 |
parents | 20c590faad54 |
children |
rev | line source |
---|---|
1196
20c590faad54
[Issue 443] New: assignment in return when using cdouble is broken
thomask
parents:
diff
changeset
|
1 // $HeadURL$ |
20c590faad54
[Issue 443] New: assignment in return when using cdouble is broken
thomask
parents:
diff
changeset
|
2 // $Date$ |
20c590faad54
[Issue 443] New: assignment in return when using cdouble is broken
thomask
parents:
diff
changeset
|
3 // $Author$ |
20c590faad54
[Issue 443] New: assignment in return when using cdouble is broken
thomask
parents:
diff
changeset
|
4 |
20c590faad54
[Issue 443] New: assignment in return when using cdouble is broken
thomask
parents:
diff
changeset
|
5 // @author@ Witold Baryluk <baryluk@mpi.int.pl> |
20c590faad54
[Issue 443] New: assignment in return when using cdouble is broken
thomask
parents:
diff
changeset
|
6 // @date@ 2006-10-19 |
1320
daef239f37cf
sed'ed replacement of new:...http.d.puremagic.com/issues/ with http://d.puremagic.com/issues/show_bug.cgi?...
thomask
parents:
1196
diff
changeset
|
7 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=443 |
1196
20c590faad54
[Issue 443] New: assignment in return when using cdouble is broken
thomask
parents:
diff
changeset
|
8 // @desc@ [Issue 443] New: assignment in return when using cdouble is broken |
20c590faad54
[Issue 443] New: assignment in return when using cdouble is broken
thomask
parents:
diff
changeset
|
9 |
20c590faad54
[Issue 443] New: assignment in return when using cdouble is broken
thomask
parents:
diff
changeset
|
10 module dstress.run.r.return_09_B; |
20c590faad54
[Issue 443] New: assignment in return when using cdouble is broken
thomask
parents:
diff
changeset
|
11 |
20c590faad54
[Issue 443] New: assignment in return when using cdouble is broken
thomask
parents:
diff
changeset
|
12 cfloat y; |
20c590faad54
[Issue 443] New: assignment in return when using cdouble is broken
thomask
parents:
diff
changeset
|
13 |
20c590faad54
[Issue 443] New: assignment in return when using cdouble is broken
thomask
parents:
diff
changeset
|
14 cfloat f(cfloat x) { |
20c590faad54
[Issue 443] New: assignment in return when using cdouble is broken
thomask
parents:
diff
changeset
|
15 return (y = x); |
20c590faad54
[Issue 443] New: assignment in return when using cdouble is broken
thomask
parents:
diff
changeset
|
16 } |
20c590faad54
[Issue 443] New: assignment in return when using cdouble is broken
thomask
parents:
diff
changeset
|
17 |
20c590faad54
[Issue 443] New: assignment in return when using cdouble is broken
thomask
parents:
diff
changeset
|
18 int main() { |
20c590faad54
[Issue 443] New: assignment in return when using cdouble is broken
thomask
parents:
diff
changeset
|
19 cfloat z = f(1.0f + 2.0fi); |
20c590faad54
[Issue 443] New: assignment in return when using cdouble is broken
thomask
parents:
diff
changeset
|
20 |
20c590faad54
[Issue 443] New: assignment in return when using cdouble is broken
thomask
parents:
diff
changeset
|
21 if(y.re != 1.0f){ |
20c590faad54
[Issue 443] New: assignment in return when using cdouble is broken
thomask
parents:
diff
changeset
|
22 assert(0); |
20c590faad54
[Issue 443] New: assignment in return when using cdouble is broken
thomask
parents:
diff
changeset
|
23 } |
20c590faad54
[Issue 443] New: assignment in return when using cdouble is broken
thomask
parents:
diff
changeset
|
24 if(y.im != 2.0f){ |
20c590faad54
[Issue 443] New: assignment in return when using cdouble is broken
thomask
parents:
diff
changeset
|
25 assert(0); |
20c590faad54
[Issue 443] New: assignment in return when using cdouble is broken
thomask
parents:
diff
changeset
|
26 } |
20c590faad54
[Issue 443] New: assignment in return when using cdouble is broken
thomask
parents:
diff
changeset
|
27 if(z.re != 1.0f){ |
20c590faad54
[Issue 443] New: assignment in return when using cdouble is broken
thomask
parents:
diff
changeset
|
28 assert(0); |
20c590faad54
[Issue 443] New: assignment in return when using cdouble is broken
thomask
parents:
diff
changeset
|
29 } |
20c590faad54
[Issue 443] New: assignment in return when using cdouble is broken
thomask
parents:
diff
changeset
|
30 if(z.im != 2.0f){ |
20c590faad54
[Issue 443] New: assignment in return when using cdouble is broken
thomask
parents:
diff
changeset
|
31 assert(0); |
20c590faad54
[Issue 443] New: assignment in return when using cdouble is broken
thomask
parents:
diff
changeset
|
32 } |
20c590faad54
[Issue 443] New: assignment in return when using cdouble is broken
thomask
parents:
diff
changeset
|
33 |
20c590faad54
[Issue 443] New: assignment in return when using cdouble is broken
thomask
parents:
diff
changeset
|
34 return 0; |
20c590faad54
[Issue 443] New: assignment in return when using cdouble is broken
thomask
parents:
diff
changeset
|
35 } |