mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
12 lines
237 B
Swift
12 lines
237 B
Swift
// RUN: %target-swift-emit-ir %s -parse-stdlib -enable-experimental-feature Embedded -wmo
|
|
|
|
// REQUIRES: swift_in_compiler
|
|
|
|
public func foo<Result>(_ body: () -> Result) -> Result {
|
|
return body()
|
|
}
|
|
|
|
public func main() {
|
|
foo() { }
|
|
}
|