Files
swift-mirror/test/TBD/async-function-pointer.swift
Doug Gregor c76dac7155 Banish @asyncHandler to a hidden flag.
We don't want @asyncHandler to be part of the concurrency model, so put
it behind a different flag.
2021-03-25 16:45:21 -07:00

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 { }
}