2
2
// RUN: split-file %s %t
3
3
4
4
/// Build the libraries.
5
- // RUN: %target-swift-frontend -emit-module %t/PublicLib.swift -o %t
6
- // RUN: %target-swift-frontend -emit-module %t/PackageLib.swift -o %t
7
- // RUN: %target-swift-frontend -emit-module %t/InternalLib.swift -o %t
8
- // RUN: %target-swift-frontend -emit-module %t/FileprivateLib.swift -o %t
9
- // RUN: %target-swift-frontend -emit-module %t/PrivateLib.swift -o %t
5
+ // RUN: %target-swift-frontend -emit-module %t/PublicLib.swift -o %t \
6
+ // RUN: -enable-library-evolution
7
+ // RUN: %target-swift-frontend -emit-module %t/PackageLib.swift -o %t \
8
+ // RUN: -enable-library-evolution
9
+ // RUN: %target-swift-frontend -emit-module %t/InternalLib.swift -o %t \
10
+ // RUN: -enable-library-evolution
11
+ // RUN: %target-swift-frontend -emit-module %t/FileprivateLib.swift -o %t \
12
+ // RUN: -enable-library-evolution
13
+ // RUN: %target-swift-frontend -emit-module %t/PrivateLib.swift -o %t \
14
+ // RUN: -enable-library-evolution
10
15
11
16
/// Check flag requirement, without and with the flag.
12
17
// RUN: %target-swift-frontend -typecheck %t/ClientWithoutTheFlag.swift -I %t -verify \
17
22
// REQUIRES: asserts
18
23
19
24
/// swiftinterfaces don't need the flag.
20
- // RUN: %target-swift-typecheck-module-from-interface(%t/Client.swiftinterface)
25
+ // RUN: %target-swift-typecheck-module-from-interface(%t/Client.swiftinterface) -I %t
21
26
22
27
//--- PublicLib.swift
23
28
//--- PackageLib.swift
@@ -34,5 +39,6 @@ private import PrivateLib // expected-error@:1 {{Access level on imports require
34
39
35
40
//--- Client.swiftinterface
36
41
// swift-interface-format-version: 1.0
37
- // swift-module-flags: -enable-library-evolution
42
+ // swift-module-flags: -enable-library-evolution -package-name MyPackage
38
43
public import Swift
44
+ package import PackageLib
0 commit comments