mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
The metadata accessor for a variadic generic type takes as arguments packs of metadata records and witness tables, and each such pack is passed in a buffer. So any such accessor is not correctly annotated `memory(none)`. rdar://161606892
9 lines
263 B
Swift
9 lines
263 B
Swift
// RUN: %target-swift-frontend %s -target %target-swift-5.9-abi-triple -emit-irgen | %IRGenFileCheck %s
|
|
|
|
// CHECK: Attrs: noinline nounwind{{$}}
|
|
// CHECK-NEXT: define {{.*}}@"$s13rdar1616068921PVMa"
|
|
|
|
public struct P<each T> {
|
|
public var teas: (repeat each T)
|
|
}
|