mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
This test is just checking that we don't crash, make it more stable by allowing no availability.
12 lines
493 B
Swift
12 lines
493 B
Swift
// RUN: %target-swift-emit-silgen %s | %FileCheck %s
|
|
|
|
// REQUIRES: objc_interop
|
|
|
|
import Foundation
|
|
import CoreGraphics
|
|
|
|
let _: (CFURL) -> CGDataProvider? = CGDataProvider.init
|
|
|
|
// CHECK-LABEL: sil private [ossa] @$s15cf_curried_initSo17CGDataProviderRefaSgSo8CFURLRefacfu_ : $@convention(thin) (@guaranteed CFURL) -> @owned Optional<CGDataProvider>
|
|
// CHECK-LABEL: sil {{.*}}[clang CGDataProvider.init] @CGDataProviderCreateWithURL : $@convention(c) (CFURL) -> @owned Optional<CGDataProvider>
|