mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
16 lines
696 B
Swift
16 lines
696 B
Swift
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -enable-experimental-concurrency -import-objc-header %S/Inputs/Delegate.h %s -emit-ir -o - | %FileCheck %s -DALIGNMENT=%target-alignment
|
|
// REQUIRES: concurrency
|
|
// REQUIRES: objc_interop
|
|
|
|
|
|
let anyObject: AnyObject = (MyAsyncProtocol.self as AnyObject) // or something like this
|
|
|
|
// rdar://76192003
|
|
// Make sure we don't emit 2 copies of methods, due to a completion-handler
|
|
// version and another due to an async based version.
|
|
|
|
// CHECK-LABEL: @_PROTOCOL_INSTANCE_METHODS_MyAsyncProtocol = internal constant
|
|
// CHECK-SAME: selector_data(myAsyncMethod:)
|
|
// CHECK-NOT: selector_data(myAsyncMethod:)
|
|
// CHECK-SAME: align [[ALIGNMENT]]
|