mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Adding `move_value [lexical]` and `begin_borrow [lexical]` should happen all the time at this point. Remove the ability to omit these instructions and update the corresponding tests.
14 lines
369 B
Swift
14 lines
369 B
Swift
// RUN: %target-swift-frontend -emit-sil %s -enable-copy-propagation -o /dev/null -verify
|
|
// REQUIRES: objc_interop
|
|
|
|
import Foundation
|
|
|
|
class MyServiceDelegate : NSObject, NSXPCListenerDelegate { }
|
|
|
|
public func warningForDeadDelegate() {
|
|
let delegate = MyServiceDelegate()
|
|
let listener = NSXPCListener.service()
|
|
listener.delegate = delegate
|
|
listener.resume()
|
|
}
|