xxxxxxxxxx
import std;
void main()
{
ref int inc2(ref int x) return pure nothrow {
++x;
return x;
}
// first time
int x = 0;
inc2(x);
assert(x == 1);
// second time
x = 0;
inc2(x);
assert(x == 1);
}