Files
swift-mirror/test/Interop/Cxx/stdlib/std-span-transformed-execution.swift
Henrik G. Olsson 6a9ac22cd2 Merge pull request #84507 from hnrklssn/swiftify-import-as-method
[Swiftify] Add support for free functions imported as instance methods

(cherry picked from commit ed4f058c01)
2025-10-07 20:12:44 -07:00

20 lines
675 B
Swift

// RUN: %target-run-simple-swift(-plugin-path %swift-plugin-dir -I %S/Inputs -Xfrontend -enable-experimental-cxx-interop -swift-version 6 -Xfrontend -disable-availability-checking -Xcc -std=c++20 -enable-experimental-feature LifetimeDependence -enable-experimental-feature SafeInteropWrappers)
// TODO: test failed in Windows PR testing: rdar://144384453
// UNSUPPORTED: OS=windows-msvc
// REQUIRES: swift_feature_SafeInteropWrappers
// REQUIRES: swift_feature_LifetimeDependence
// REQUIRES: executable_test
#if !BRIDGING_HEADER
import StdSpan
#endif
import CxxStdlib
func canCallSafeSpanAPIs(_ x: Span<CInt>) {
funcWithSafeWrapper(x)
funcWithSafeWrapper2(x)
}