Skip to content

Commit 990c870

Browse files
Merge pull request #72220 from nate-chandler/gh71605
[Test] Add test case.
2 parents 1708ebb + fa9e762 commit 990c870

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
@@ -713,6 +713,11 @@ func consumeString() {
713713
_ = consume s
714714
}
715715

716+
func consumeArray() {
717+
var x:[Int] = [] // expected-warning{{}}
718+
_ = consume x
719+
}
720+
716721
//////////////////////
717722
// Reinit in pieces //
718723
//////////////////////

0 commit comments

Comments
 (0)