view test/c.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 c53b6e3fe49a
children
line wrap: on
line source

module c;

void main()
{
    ushort a = 0xFFF0;
    ushort b = 0x0FFF;
    auto t = a & b;
    a &= b;
    assert(t == a);
}