File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change 4848// RUN: cat %t/ClientLib.swiftinterface | %FileCheck --check-prefixes=CLIENT-PUBLIC %s
4949// RUN: cat %t/ClientLib.private.swiftinterface | %FileCheck --check-prefixes=CLIENT-PRIVATE %s
5050
51+ /// Check that we get the same behavior using swiftinterfaces only.
52+ // RUN: rm -f %t/PrivateLib.swiftmodule %t/PublicLib.swiftmodule
53+ // RUN: %target-swift-frontend -emit-module %t/ClientLib.swift -I %t \
54+ // RUN: -swift-version 5 -enable-library-evolution \
55+ // RUN: -o %t/ClientLib.swiftmodule \
56+ // RUN: -emit-module-interface-path %t/ClientLib.swiftinterface \
57+ // RUN: -emit-private-module-interface-path %t/ClientLib.private.swiftinterface \
58+ // RUN: -enable-experimental-feature ModuleInterfaceExportAs
59+ // RUN: %target-swift-typecheck-module-from-interface(%t/ClientLib.swiftinterface) -I %t
60+ // RUN: %target-swift-typecheck-module-from-interface(%t/ClientLib.private.swiftinterface) -I %t
61+ // RUN: cat %t/ClientLib.swiftinterface | %FileCheck --check-prefixes=CLIENT-PUBLIC %s
62+ // RUN: cat %t/ClientLib.private.swiftinterface | %FileCheck --check-prefixes=CLIENT-PRIVATE %s
63+
5164//--- PrivateLib.swift
5265
5366public struct PrivateNameStruct { }
You can’t perform that action at this time.
0 commit comments