blob: f5f5b8b938af1109b9ab3423105562ce316373c2 [file] [log] [blame]
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests -parse-stdlib -emit-silgen %s | %FileCheck %s
typealias Int = Builtin.Int64
var zero: Int
func call(f: () -> Int) -> Int {
return f()
}
// CHECK: sil hidden @_T017capture_typealias3fooyyF : $@convention(thin) () -> () {
// CHECK: function_ref [[CLOSURE:@_T017capture_typealias3fooyyFBi64_ycfU_]]
func foo() {
typealias X = Int
call {
var x: X = zero
return x
}
}
// CHECK: sil shared @_T017capture_typealias3fooyyFBi64_ycfU_ : $@convention(thin) () -> Builtin.Int64 {