comparison gen/toobj.c @ 63:2c39b5292cf3 trunk

[svn r67] Fixed ignore unittests instead of failing to compile
author lindquist
date Thu, 25 Oct 2007 10:05:21 +0200
parents 2c3cd3596187
children b688ad419f8c
comparison
equal deleted inserted replaced
62:b86e00b938a5 63:2c39b5292cf3
648 if (llvmDModule) { 648 if (llvmDModule) {
649 assert(llvmValue != 0); 649 assert(llvmValue != 0);
650 return; 650 return;
651 } 651 }
652 652
653 if (isUnitTestDeclaration()) {
654 Logger::println("*** ATTENTION: ignoring unittest declaration: %s", toChars());
655 return;
656 }
657
653 Type* t = LLVM_DtoDType(type); 658 Type* t = LLVM_DtoDType(type);
654 TypeFunction* f = (TypeFunction*)t; 659 TypeFunction* f = (TypeFunction*)t;
655 660
656 bool declareOnly = false; 661 bool declareOnly = false;
657 if (TemplateInstance* tinst = parent->isTemplateInstance()) { 662 if (TemplateInstance* tinst = parent->isTemplateInstance()) {