view test/neg.d @ 31:2841234d2aea trunk

[svn r35] * Attributes on struct fields/methods now work * Updated object.d to 1.021 * Added -novalidate command line option. this is sometimes useful when debugging as it may let you read the .ll even if it's invalid.
author lindquist
date Thu, 04 Oct 2007 16:44:07 +0200
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);
}