view tests/mini/dgfuncptr.d @ 1565:b1e5f8001904

Build fix for TargetMachine changes. #if'ed for now.
author Benjamin Kramer <benny.kra@gmail.com>
date Mon, 03 Aug 2009 11:29:35 +0200
parents 4435f57956e7
children
line wrap: on
line source

void main()
{
  void foo() {}

  auto dg = &foo;

  if(dg.funcptr is null)
  { assert(0); }
}