view tests/mini/dgfuncptr.d @ 1324:b3674ad4026d

Strip metadata for -singleobj as a workaround to a LLVM linking bug.
author Christian Kamm <kamm incasoftware de>
date Sat, 09 May 2009 18:57:21 +0200
parents 4435f57956e7
children
line wrap: on
line source

void main()
{
  void foo() {}

  auto dg = &foo;

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