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

// 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>

Remove availability check from SILGen test
[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.
