@nogc pure nothrow void mod(int *v)
{
scope(exit)
{
scope(exit)
{
*v = 1;
}
*v = 2;
}
}
void main()
{
@nogc pure nothrow int n = 0;
mod(&n);
import std.stdio;
writefln("n = %d", n);
}