mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
If `exit` hasn't been imported, SILGenModule::emitEntryPoint crashes because it doesn't synthesize an exit function like SILGenFunction::emitCallToMain does. Make it do so. rdar://122413238
10 lines
165 B
Swift
10 lines
165 B
Swift
// RUN: %target-typecheck-verify-swift -disable-availability-checking -parse-stdlib
|
|
// expect-no-diagnostics
|
|
|
|
import _Concurrency
|
|
|
|
func foo() async {
|
|
}
|
|
|
|
await foo()
|