Files
swift-mirror/test/Interpreter/SDK/objc_block_generic.swift
Graham Batty 198402dcfe Mark tests that don't pass on linux as XFAIL.
Swift SVN r23573
2014-11-24 17:40:37 +00:00

16 lines
331 B
Swift

// RUN: %target-run-simple-swift | FileCheck %s
// XFAIL: linux
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))
}