mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
19 lines
390 B
Swift
19 lines
390 B
Swift
// RUN: %target-swift-emit-ir -Osize %s -enable-experimental-feature Embedded | %FileCheck %s
|
|
|
|
// REQUIRES: swift_in_compiler
|
|
// REQUIRES: swift_feature_Embedded
|
|
|
|
public func foo<T>(n: T) {
|
|
bar(n: 42)
|
|
}
|
|
|
|
private func bar<T>(n: T) {
|
|
baz(n: 42)
|
|
}
|
|
|
|
public func baz<T>(n: T) {
|
|
let x: ContiguousArray<Int> = .init(repeating: 0, count: 1)
|
|
}
|
|
|
|
// CHECK: define {{.*}}@{{_*}}main{{.*}}(
|