Files
swift-mirror/test/Concurrency/objc_async_protocol_irgen.swift
Andrew Trick 45f74a1819 Fix test/Concurrency/objc_async_protocol_irgen.swift for 32-bit
This test was introduced without 32-bit testing.
2021-04-09 00:22:23 -07:00

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]]