mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
An oversight from https://github.com/swiftlang/swift/pull/82288. Fixes #82368 / rdar://153837014.
12 lines
243 B
Swift
12 lines
243 B
Swift
// RUN: %target-swift-emit-silgen -disable-availability-checking -verify %s
|
|
|
|
struct A {
|
|
static let a: InlineArray = [1]
|
|
|
|
static func foo() {
|
|
a.span.withUnsafeBufferPointer({ buffer in
|
|
print("\(buffer.baseAddress!)")
|
|
})
|
|
}
|
|
}
|