File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change
1
+ // RUN: %empty-directory(%t)
2
+ // RUN: split-file %s %t
3
+
4
+ // RUN: %target-swift-frontend -emit-module %t/Bar.swift -I %t \
5
+ // RUN: -module-name Bar -package-name barpkg \
6
+ // RUN: -enable-library-evolution -swift-version 5 \
7
+ // RUN: -emit-module-interface-path %t/Bar.swiftinterface \
8
+ // RUN: -emit-private-module-interface-path %t/Bar.private.swiftinterface \
9
+ // RUN: -emit-package-module-interface-path %t/Bar.package.swiftinterface
10
+
11
+ // RUN: %target-swift-frontend -scan-dependencies -o %t/deps.json -I %t -experimental-package-interface-load \
12
+ // RUN: %t/Client.swift -module-name Client -package-name barpkg -swift-version 5
13
+
14
+ // RUN: %FileCheck %s --input-file=%t/deps.json
15
+
16
+ // CHECK: "swift": "Bar"
17
+ // CHECK: "modulePath": "{{.*}}{{/|\\}}Bar-{{.*}}.swiftmodule"
18
+ // CHECK: "moduleInterfacePath": "{{.*}}{{/|\\}}Bar.package.swiftinterface"
19
+
20
+ //--- Bar.swift
21
+ public enum PubEnum {
22
+ case red, green
23
+ }
24
+
25
+ package enum PkgEnum {
26
+ case blue, yellow
27
+ }
28
+
29
+ //--- Client.swift
30
+ import Bar
You can’t perform that action at this time.
0 commit comments