Files
swift-mirror/test/ModuleInterface/concurrency.swift
Brent Royal-Gordon 0a94737ff1 Emit -enable-experimental-concurrency into module interfaces
…when the module is built with that flag. Fixes rdar://69322538.
2020-09-24 15:26:10 -07:00

22 lines
574 B
Swift

// RUN: %empty-directory(%t)
// RUN: %target-swift-frontend -typecheck -enable-library-evolution -enable-experimental-concurrency -emit-module-interface-path %t/Library.swiftinterface -DLIBRARY -module-name Library %s
#if LIBRARY
public func fn() async {
fatalError()
}
// RUN: %target-typecheck-verify-swift -enable-experimental-concurrency -I %t
#else
import Library
func callFn() async {
await fn()
}
#endif
// RUN: %FileCheck %s <%t/Library.swiftinterface
// CHECK: // swift-module-flags:{{.*}} -enable-experimental-concurrency
// CHECK: public func fn() async