mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Those instructions should not be "visible" for debugging and for diagnostic messages. Fixes a wrong "unreachable code" warning. https://bugs.swift.org/browse/SR-14873 rdar://80237870
18 lines
329 B
Swift
18 lines
329 B
Swift
// RUN: %target-swift-frontend -disable-availability-checking -emit-sil -verify %s
|
|
|
|
// 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()
|
|
}
|
|
|