From 316e3b6fe73ba6308b1857ba4274710bc511f42b Mon Sep 17 00:00:00 2001 From: Alexey Prokhin Date: Sat, 30 Apr 2011 17:35:35 +0400 Subject: [PATCH] That should really be in rev.1954 --- dmd/func.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dmd/func.c b/dmd/func.c index 6b569beb..62e7ee27 100644 --- a/dmd/func.c +++ b/dmd/func.c @@ -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);