Skip to content

Commit 9bf9b00

Browse files
committed
[Test] Add regression test.
For #70234 (comment) .
1 parent 44a9420 commit 9bf9b00

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/SILOptimizer/consume_operator_kills_copyable_values.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,11 @@ func g()
371371
f(x: consume x)
372372
}
373373

374+
func consumeArrayAny() {
375+
let a: [Any] = []
376+
_ = consume a
377+
}
378+
374379
/////////////////////////
375380
// Partial Apply Tests //
376381
/////////////////////////

0 commit comments

Comments
 (0)