Re: testsuite: optimization dependent test

2013-03-27 Thread Kagamin
core.memory.GC.addrOf(dg.ptr);

Re: testsuite: optimization dependent test

2013-03-27 Thread Kagamin
Are you trying to get stack top? void test(scope void delegate() dg) { int[2] top; void* p=top.ptr; assert(p < dg.ptr); assert(dg.ptr !is null); //also check that ptr is not in heap assert(gc_addrOf(dg.ptr) is null); }