Mercurial > projects > dstress
annotate run/c/cdouble_11_A.d @ 1630:d0efa3ae5522 default tip
run/mini/naked_asm5: New x86_64 ABI passes the arguments in reverse order.
author | David Nadlinger <code@klickverbot.at> |
---|---|
date | Sat, 23 Apr 2011 22:57:32 +0200 |
parents | e6887749b811 |
children |
rev | line source |
---|---|
1237 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 // @author@ Thomas Kühne <thomas-doop@kuehne.cn> | |
6 // @date@ 2006-11-19 | |
1321 | 7 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=575 |
1237 | 8 // @desc@ [Issue 575] New: wrong evaluation of (creal * 2 + 1i) |
9 | |
10 module dstress.run.c.cdouble_11_A; | |
11 | |
12 cdouble foo(cdouble a){ | |
13 return a * 2.0 + 1.0i; | |
14 } | |
15 | |
16 int main(){ | |
17 if(foo(1.0 + 2.0i) != 2.0 + 5.0i){ | |
18 assert(0); | |
19 } | |
20 return 0; | |
21 } | |
22 |