[svn r67] Fixed ignore unittests instead of failing to compile

This commit is contained in:
Tomas Lindquist Olsen
2007-10-25 10:05:21 +02:00
parent 1f13dbd766
commit 1dcad1c62d
2 changed files with 9 additions and 0 deletions

View File

@@ -650,6 +650,11 @@ void FuncDeclaration::toObjFile()
return;
}
if (isUnitTestDeclaration()) {
Logger::println("*** ATTENTION: ignoring unittest declaration: %s", toChars());
return;
}
Type* t = LLVM_DtoDType(type);
TypeFunction* f = (TypeFunction*)t;

View File

@@ -3,3 +3,7 @@ module unittest1;
unittest
{
}
void main()
{
}