mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-26 08:33:14 +01:00
That should really be in rev.1954
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user