blob: 5f967ee06a7af7264127d3481322b2d63928ab0b [file] [log] [blame]
// RUN: %target-run-simple-swift | %FileCheck %s
// REQUIRES: executable_test
// REQUIRES: objc_interop
import Foundation
autoreleasepool {
let f: @convention(block) (Int) -> Int = { $0 }
// In an -Onone build this instantiates the generic metadata for
// @convention(block) Int -> Int
let ff: (@convention(block) (Int) -> Int)? = f
let gg = ff
// CHECK: 219
print(gg!(219))
}