mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
This just eliminates -enable-sil-ownership from all target-swift-frontend and target-swift-emit-silgen RUN lines. Both of those now include enable-sil-ownership in their expansion.
14 lines
291 B
Swift
14 lines
291 B
Swift
// RUN: %target-swift-frontend -sil-verify-all -emit-sil %s -o /dev/null -verify
|
|
// REQUIRES: objc_interop
|
|
|
|
import Foundation
|
|
|
|
@_transparent public func a(_ condition: @autoclosure () -> Bool) {
|
|
_ = condition()
|
|
}
|
|
|
|
func callsA() {
|
|
let x = (2 as NSNumber) as AnyObject
|
|
a(x.isEqual(2))
|
|
}
|