That should really be in rev.1954

This commit is contained in:
Alexey Prokhin
2011-04-30 17:35:35 +04:00
parent 6548ce2e79
commit 316e3b6fe7

View File

@@ -3277,7 +3277,11 @@ Dsymbol *UnitTestDeclaration::syntaxCopy(Dsymbol *s)
void UnitTestDeclaration::semantic(Scope *sc)
{
#if IN_LLVM
if (global.params.useUnitTests && sc->module->isRoot)
#else
if (global.params.useUnitTests)
#endif
{
if (!type)
type = new TypeFunction(NULL, Type::tvoid, FALSE, LINKd);