view tests/mini/real1.d @ 834:f466f475b654

Added proper "need 'this' to access member foo" errors instead of "variable foo not resolved" for some cases, added FIXME for the old error! Added a bit more information to the runtime's cyclic dependency detection exception.
author Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
date Tue, 09 Dec 2008 01:56:39 +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);
}