view test/neg.d @ 129:8096ba7082db trunk

[svn r133] Fixed some problems with inlining not happening :P Fixed problems with certain cases of deeply nested classes/functions.
author lindquist
date Fri, 28 Dec 2007 22:55:24 +0100
parents 77e3d1ddae3f
children
line wrap: on
line source

module neg;

void main()
{
    int i = 32;
    long l = 55;
    float f = 23;
    double d = 4;
    assert(-i == -32);
    assert(-l == -55);
    assert(-f == -23);
    assert(-d == -4);
}