Files
swift-mirror/test/Interop/C/implementation-only-imports/check-function-visibility.swift
Kavon Farvardin da53b24d76 test: @_inlineable -> @inlinable
The Swift 4 spelling only should remain in specific tests that ensure it's still accepted in that mode.
2025-08-12 14:32:24 -07:00

18 lines
565 B
Swift

// RUN: %empty-directory(%t)
// RUN: %target-swift-frontend -emit-module -o %t/FortyTwo.swiftmodule -I %S/Inputs %s
// Swift should consider all sources for a decl and recognize that the
// decl is not hidden behind @_implementationOnly in all modules.
// This test, as well as `check-function-visibility-inversed.swift`
// checks that the `getFortyTwo()` decl can be found when at least one of the
// modules is not `@_implementationOnly`.
@_implementationOnly import UserA
import UserB
@inlinable
public func callFortyTwo() -> CInt {
return getFortyTwo()
}