Skip to content

Commit 3325cd3

Browse files
authored
Merge pull request swiftlang#30512 from slavapestov/curry-thunk-regression-test-again
Re-apply: Add regression test for rdar://59496033
2 parents ddc22a3 + a618c73 commit 3325cd3

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

test/SILGen/cf_curried_init.swift

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// RUN: %target-swift-emit-silgen %s | %FileCheck %s
2+
3+
// REQUIRES: objc_interop
4+
5+
import Foundation
6+
import CoreGraphics
7+
8+
let _: (CFURL) -> CGDataProvider? = CGDataProvider.init
9+
10+
// CHECK-LABEL: sil private [ossa] @$s15cf_curried_initSo17CGDataProviderRefaSgSo8CFURLRefacfu_ : $@convention(thin) (@guaranteed CFURL) -> @owned Optional<CGDataProvider>
11+
// CHECK-LABEL: sil [available {{.*}}] [clang CGDataProvider.init] @CGDataProviderCreateWithURL : $@convention(c) (CFURL) -> @owned Optional<CGDataProvider>

0 commit comments

Comments
 (0)