view tangotests/debug5.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 d61ce72c39ab
children
line wrap: on
line source

module tangotests.debug5;

void main()
{
    int i = 32;
    real r = 3.1415;
    real* p = &r;
    func(i,r,p);
}

void func(int i, real r, real* p)
{
    int* fail;
    *fail = 666;
}