mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
20 lines
610 B
Swift
20 lines
610 B
Swift
// RUN: %target-swift-frontend -target %target-swift-5.1-abi-triple -emit-sil -verify -o /dev/null %s
|
|
// RUN: %target-swift-frontend -target %target-swift-5.1-abi-triple -emit-sil -verify -o /dev/null %s -strict-concurrency=targeted
|
|
// RUN: %target-swift-frontend -target %target-swift-5.1-abi-triple -emit-sil -verify -o /dev/null %s -strict-concurrency=complete
|
|
|
|
// REQUIRES: concurrency
|
|
|
|
// Check that the inserted hop-to-executor instructions don't cause a false
|
|
// "unreachable code" warning.
|
|
|
|
@MainActor
|
|
func bye() -> Never {
|
|
print("bye")
|
|
fatalError()
|
|
}
|
|
|
|
func testit() async {
|
|
await bye()
|
|
}
|
|
|