Files
swift-mirror/test/Interop/C/implementation-only-imports/check-function-visibility-inversed.swift
Rosica Dejanovska 1a18225ef9 Polish PR
2020-11-10 11:22:38 +01:00

18 lines
556 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.swift`
// checks that the `getFortyTwo` decl can be found when at least one of the
// modules is not `@_implementationOnly`.
import UserA
@_implementationOnly import UserB
@_inlineable
public func callFortyTwo() -> CInt {
return getFortyTwo()
}