view test/with1.d @ 281:f5f97ca47b33 trunk

[svn r302] Make HaltExps and assert(0) generate an assert message again instead of using llvm's trap intrinsic.
author ChristianK
date Fri, 20 Jun 2008 23:38:51 +0200
parents c44e6a711885
children
line wrap: on
line source

module with1;
struct S
{
    int i;
    float f;
}
void main()
{
    S s;
    with(s)
    {
        i = 0;
        f = 3.5;
    }
    assert(s.i == 0);
    assert(s.f == 3.5);
}