mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
We don't want @asyncHandler to be part of the concurrency model, so put it behind a different flag.
15 lines
495 B
Swift
15 lines
495 B
Swift
// REQUIRES: VENDOR=apple
|
|
// REQUIRES: concurrency
|
|
// RUN: %target-swift-frontend -emit-ir %s -enable-experimental-concurrency -enable-experimental-async-handler -validate-tbd-against-ir=all -module-name test | %FileCheck %s
|
|
|
|
// CHECK: @"$s4test6testityyYFTu" = hidden global %swift.async_func_pointer
|
|
|
|
@asyncHandler
|
|
public func testit() { }
|
|
|
|
// CHECK: @"$s4test1CC1f33_295642D23064661A21CD592AD781409CLLyyYFTu" = global %swift.async_func_pointer
|
|
|
|
open class C {
|
|
private func f() async { }
|
|
}
|