mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
This new flag should allow module authors to specify allowable client list. This list is printed in the textual module interface. Diagnostics support can come later.
11 lines
684 B
Swift
11 lines
684 B
Swift
// RUN: %empty-directory(%t)
|
|
// RUN: %empty-directory(%t/textual)
|
|
// RUN: %empty-directory(%t/binary)
|
|
|
|
// RUN: %target-swift-frontend -emit-module %s -module-name Foo -swift-version 5 -disable-implicit-concurrency-module-import -allowable-client FooFriend1 -allowable-client FooFriend2 -allowable-client FooFriend3 -emit-module-interface-path %t/textual/Foo.swiftinterface -enable-library-evolution -emit-module-path %t/binary/Foo.swiftmodule
|
|
|
|
// RUN: %FileCheck %s --check-prefix=INTERFACE-FLAG < %t/textual/Foo.swiftinterface
|
|
|
|
// INTERFACE-FLAG: swift-module-flags-ignorable:
|
|
// INTERFACE-FLAG: -allowable-client FooFriend1 -allowable-client FooFriend2 -allowable-client FooFriend3
|