Files
swift-mirror/test/SILGen/cf_curried_init.swift
Ben Barham d3693e7482 [Test] Remove availability check from SILGen test
This test is just checking that we don't crash, make it more stable by
allowing no availability.
2022-06-02 10:04:35 -07:00

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>