Skip to content

Commit e436429

Browse files
committed
[Test] For typelowering lexicality verify fix.
Added test case that exhibits failure without ff3ec19 even when collection types aren't eagermove.
1 parent e5ea789 commit e436429

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/SILGen/variadic-generic-tuples.swift

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,14 @@ func callVariadicMemberwiseInit() -> MemberwiseTupleHolder<Int, String> {
284284
return MemberwiseTupleHolder(content: (0, "hello"))
285285
}
286286

287+
@_eagerMove struct MyString {
288+
var guts: AnyObject
289+
}
290+
291+
func callVariadicMemberwiseInit(_ ms: MyString) -> MemberwiseTupleHolder<Int, MyString> {
292+
return MemberwiseTupleHolder(content: (0, ms))
293+
}
294+
287295
// rdar://107151145: when we tuple-destructure a black hole
288296
// initialization, the resulting element initializations need to
289297
// handle pack expansion initialization

0 commit comments

Comments
 (0)