mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
22 lines
461 B
Swift
22 lines
461 B
Swift
// RUN: %target-swift-frontend -emit-ir %s -enable-experimental-feature Embedded | %FileCheck %s
|
|
|
|
// REQUIRES: VENDOR=apple
|
|
// REQUIRES: OS=macosx
|
|
|
|
public struct MyStruct {
|
|
}
|
|
|
|
public func main() {
|
|
var arr: [MyStruct] = []
|
|
var arr2: [MyStruct] = [.init()]
|
|
var arr3 = arr2
|
|
arr3.append(MyStruct())
|
|
}
|
|
|
|
public func copy(_ a: inout [MyStruct]) {
|
|
var a = a
|
|
}
|
|
|
|
// CHECK: define {{.*}}@"$s4mainAAyyF"
|
|
// CHECK: define {{.*}}@"$s4main4copyyySayAA8MyStructVGzF"
|