[Issue 5570] 64 bit C ABI not followed for passing structs and complex numbers as function parameters
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu May 31 04:27:39 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=5570
--- Comment #19 from Leandro Lucarella <leandro.lucarella at sociomantic.com> 2012-05-31 04:29:21 PDT ---
Just a simple example (I've used to see if the progress on the bug fixed some
of the problems I had :):
---
extern (C)
{
struct lldiv_t
{
long quot,
rem;
}
lldiv_t lldiv(long numer, long denom);
int printf(char* fmt, ...);
}
void main(char[][] args)
{
auto r = lldiv(94, 82);
printf("%lld %lld\n", r.quot, r.rem);
}
---
For me, returns a high, randomish (changes on each run) number and 3 or 1.
Examples:
20967488 3
32686144 3
38604832 1
20029472 1
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list