view tangotests/c.d @ 209:c4c9b4ac021b trunk

[svn r225] Fixed: delete expressions no longer use llvm's free instruction, which crashes on a GC provided pointer.
author lindquist
date Wed, 14 May 2008 01:22:40 +0200
parents 68a7dd38c03c
children
line wrap: on
line source

class Foo
{
    int i;
}

class Bar : Foo
{
    int j;
}

void func()
{
    scope c = new Bar;
    func2(c);
}

void func2(Bar c)
{
    c.i = 123;
}

void main()
{
    func();
}