Skip to content

Commit 9ef74da

Browse files
authored
Merge pull request swiftlang#30477 from slavapestov/cf-curried-init-regression-test
Add regression test for rdar://59496033
2 parents 976a1d7 + c061e66 commit 9ef74da

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 10.0] [clang CGDataProvider.init] @CGDataProviderCreateWithURL : $@convention(c) (CFURL) -> @owned Optional<CGDataProvider>

0 commit comments

Comments
 (0)