Files
swift-mirror/test/SILOptimizer/mandatory_inlining_dynamic_method.swift
Michael Gottesman 3ebd8df493 [gardening] Remove unnecessary -enable-sil-ownership from tests that now just get it from their pattern.
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.
2019-03-12 20:39:18 -07:00

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))
}