Files
swift-mirror/test/SILOptimizer/mandatory_inlining_dynamic_method.swift
2017-10-04 03:53:16 -07:00

14 lines
313 B
Swift

// RUN: %target-swift-frontend -enable-sil-ownership -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))
}