mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
18 lines
538 B
Swift
18 lines
538 B
Swift
// RUN: %target-swift-frontend -Xllvm -sil-full-demangle %s \
|
|
// RUN: -emit-sil -emit-verbose-sil -Xllvm -sil-print-debuginfo -g -o - \
|
|
// RUN: | %FileCheck %s
|
|
public func g<T>(_ t: T) {}
|
|
public func f(_ i: Int32) {
|
|
// CHECK: function_ref @$s4main1fyys5Int32VFyycfU_
|
|
// CHECK-SAME: loc "{{.*}}":13:3,
|
|
// CHECK: %[[CLOSURE:.*]] = partial_apply
|
|
// CHECK-SAME: loc "{{.*}}":13:3,{{.*}}auto_gen
|
|
// CHECK: store %[[CLOSURE]]
|
|
// CHECK-SAME: loc "{{.*}}":12:3,
|
|
var closure = // line 12
|
|
{
|
|
g(i)
|
|
}
|
|
return closure()
|
|
}
|