view test/bug8.d @ 327:781af50846b2 trunk

[svn r348] Switch on class invariants (except in release mode). Generate correct member for classInvariant in classinfo struct.
author ChristianK
date Thu, 10 Jul 2008 22:00:27 +0200
parents 8b0e809563df
children
line wrap: on
line source

module bug8;

void main()
{
    s = newS();
}

S* s;

struct S
{
    int i;
}

S* newS()
{
    auto tmp = new S;
    tmp.i = 4;
    return tmp;
}