Skip to content

Commit 732a7f6

Browse files
committed
[Sema] Update test tracking dependencies of access-level on imports
This general test applies to all access-level. Let's precise that it tests the scenario where a client is outside of the package to preserve the current behavior. A new tests will check the behavior of a package dependency for clients in package.
1 parent 4330921 commit 732a7f6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/Serialization/access-level-import-dependencies.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ private import HiddenDep
2929
// RUN: -enable-library-evolution \
3030
// RUN: -enable-experimental-feature AccessLevelOnImport
3131
// RUN: %target-swift-frontend -emit-module %t/PackageDep.swift -o %t -I %t \
32-
// RUN: -enable-library-evolution \
32+
// RUN: -enable-library-evolution -package-name MyPackage \
3333
// RUN: -enable-experimental-feature AccessLevelOnImport
3434
// RUN: %target-swift-frontend -emit-module %t/InternalDep.swift -o %t -I %t \
3535
// RUN: -enable-library-evolution \
@@ -42,6 +42,7 @@ private import HiddenDep
4242
// RUN: -enable-experimental-feature AccessLevelOnImport
4343

4444
// RUN: %target-swift-frontend -typecheck %t/ClientOfPublic.swift -I %t \
45+
// RUN: -enable-library-evolution -package-name MyOtherPackage \
4546
// RUN: -Rmodule-loading 2>&1 | %FileCheck -check-prefix=VISIBLE-HIDDEN-DEP %s
4647
// VISIBLE-HIDDEN-DEP: source: '{{.*}}HiddenDep.swiftmodule'
4748
//--- ClientOfPublic.swift

0 commit comments

Comments
 (0)