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);
}

Reply via email to