Skip to content

Commit 471b228

Browse files
committed
[ModuleInterface] Test that ModuleInterfaceExportAs doesn't raise errors
Passing the flags `-enable-experimental-feature ModuleInterfaceExportAs` has no effect anymore, test that it's not reported as an error.
1 parent 6f1a774 commit 471b228

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

test/ModuleInterface/export-as-in-swiftinterfaces.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@
1010
// RUN: -enable-library-evolution \
1111
// RUN: -emit-module-path %t/Exported.swiftmodule \
1212
// RUN: -emit-module-interface-path %t/Exported.swiftinterface \
13-
// RUN: -emit-private-module-interface-path %t/Exported.private.swiftinterface \
14-
// RUN: -enable-experimental-feature ModuleInterfaceExportAs
13+
// RUN: -emit-private-module-interface-path %t/Exported.private.swiftinterface
1514
// RUN: %target-swift-typecheck-module-from-interface(%t/Exported.private.swiftinterface) -module-name Exported -I %t
1615
// RUN: cat %t/Exported.swiftinterface | %FileCheck -check-prefix=CHECK-USE-EXPORTER %s
1716
// RUN: cat %t/Exported.private.swiftinterface | %FileCheck -check-prefix=CHECK-USE-EXPORTED %s

test/ModuleInterface/swift-export-as.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
// RUN: %empty-directory(%t)
22
// RUN: split-file %s %t
33

4+
/// Make sure the flag `ModuleInterfaceExportAs` doesn't raise an error.
5+
// RUN: %target-swift-frontend -emit-module %t/PrivateLib.swift \
6+
// RUN: -enable-experimental-feature ModuleInterfaceExportAs
7+
48
/// Build exportee.
59
// RUN: %target-swift-frontend -emit-module %t/PrivateLib.swift \
610
// RUN: -swift-version 5 -enable-library-evolution \

0 commit comments

Comments
 (0)