mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Check that "@testable import Foo" is only used to import testable modules.
(i.e. modules compiled with -enable-testing) Part of testability (rdar://problem/17732115) Swift SVN r26293
This commit is contained in:
@@ -334,9 +334,9 @@ void SourceLookupCache::invalidate() {
|
||||
// Module Implementation
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
Module::Module(Identifier name, ASTContext &ctx, bool testingEnabled)
|
||||
: DeclContext(DeclContextKind::Module, nullptr), Ctx(ctx), Name(name),
|
||||
DSOHandleAndTestingEnabled(nullptr, testingEnabled) {
|
||||
Module::Module(Identifier name, ASTContext &ctx)
|
||||
: DeclContext(DeclContextKind::Module, nullptr), Ctx(ctx), Name(name)
|
||||
{
|
||||
ctx.addDestructorCleanup(*this);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user