Skip to content

Commit 8801658

Browse files
Merge pull request #72225 from nate-chandler/gh72220
[Test] Add regression test.
2 parents 321cc83 + 8466c89 commit 8801658

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/SILOptimizer/consume_operator_kills_copyable_loadable_vars.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -718,6 +718,11 @@ func consumeArray() {
718718
_ = consume x
719719
}
720720

721+
func consumeInitdArray() {
722+
let x:[Int] ; x = []
723+
_ = consume x
724+
}
725+
721726
//////////////////////
722727
// Reinit in pieces //
723728
//////////////////////

0 commit comments

Comments
 (0)