mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
9 lines
260 B
Swift
9 lines
260 B
Swift
// RUN: %target-swift-frontend %s -parse-as-library -disable-availability-checking -emit-ir -o /dev/null
|
|
|
|
// Check that the MoveOnlyWrappedTypeEliminator doesn't crash
|
|
func consumingArray(_ arr: consuming [Int]) {
|
|
let s = arr.mutableSpan;
|
|
_ = consume s
|
|
}
|
|
|