mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
We were already effectively doing this everywhere /except/ when building the standard library (which used -O2), so just use the model we want going forward. Swift SVN r20455
15 lines
315 B
Swift
15 lines
315 B
Swift
// RUN: %target-run-simple-swift | FileCheck %s
|
|
|
|
import Foundation
|
|
|
|
autoreleasepool {
|
|
let f: @objc_block Int -> Int = { $0 }
|
|
// In an -Onone build this instantiates the generic metadata for
|
|
// @objc_block Int -> Int
|
|
let ff: (@objc_block Int -> Int)? = f
|
|
let gg = ff
|
|
|
|
// CHECK: 219
|
|
println(gg!(219))
|
|
}
|