view tests/mini/real1.d @ 849:ba390e5e9150

Remove unportable env-sanitizing code. If it is really needed, it needs to be rethought. Closes #131.
author Christian Kamm <kamm incasoftware de>
date Sun, 14 Dec 2008 16:30:06 +0100
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);
}