-
Notifications
You must be signed in to change notification settings - Fork 10.4k
/
Copy pathallowable-client.swift
19 lines (13 loc) · 1.22 KB
/
allowable-client.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// RUN: %empty-directory(%t)
// RUN: %empty-directory(%t/textual)
// RUN: %empty-directory(%t/binary)
// RUN: %empty-directory(%t/module-cache)
// 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:
// INTERFACE-FLAG: -allowable-client FooFriend1 -allowable-client FooFriend2 -allowable-client FooFriend3
// RUN: %target-swift-ide-test -print-module-metadata -module-to-print Foo -I %t/binary -source-filename %s -module-cache-path %t/module-cache | %FileCheck %s --check-prefix=BINARY-MODULE
// RUN: %target-swift-ide-test -print-module-metadata -module-to-print Foo -I %t/textual -source-filename %s -module-cache-path %t/module-cache | %FileCheck %s --check-prefix=BINARY-MODULE
// BINARY-MODULE-DAG: allowable client: FooFriend1;
// BINARY-MODULE-DAG: allowable client: FooFriend2;
// BINARY-MODULE-DAG: allowable client: FooFriend3;