blob: a377cd9139de0803936e838cef35ddc5b8ddc7a4 [file] [log] [blame]
import core.exception;
import core.memory;
class FailFinalization
{
int magic;
~this () @nogc nothrow
{
try
assert(this.magic == 42);
catch (AssertError) {}
}
}
void foo ()
{
auto dangling = new FailFinalization();
}
void main()
{
foo();
GC.collect();
}