view tests/mini/real1.d @ 1643:8f121883bce8

Apply patch from klickverbot. This is his 'proper fix' patch for bug #395.
author Kelly Wilson <wilsonk cpsc.ucalgary.ca>
date Mon, 08 Mar 2010 23:37:40 -0700
parents cc40db549aea
children
line wrap: on
line source

module mini.real1;

extern(C)
{
real tanl(real x);
int printf(char*, ...);
}

void main()
{
    real ans = tanl(0.785398163398);
    printf("%llf\n", ans);
    assert(ans > 0.999 && ans < 1.001);
}