mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
21 lines
406 B
Swift
21 lines
406 B
Swift
// REQUIRES: OS=macosx
|
|
// REQUIRES: swift_interpreter
|
|
// RUN: %target-jit-run %s -enable-experimental-feature LazyImmediate | %FileCheck %s
|
|
|
|
// Tests that the linkage of private symbols is
|
|
// promoted to hidden external, allowing
|
|
// single-function compilation of non-public symbols.
|
|
|
|
fileprivate func foo() {
|
|
print("foo")
|
|
}
|
|
|
|
func bar() {
|
|
foo()
|
|
print("bar")
|
|
}
|
|
|
|
// CHECK: foo
|
|
// CHECK-NEXT: bar
|
|
bar()
|