Skip to content

Commit 4fef3c8

Browse files
authored
Merge pull request #64883 from nate-chandler/typelowering-lexicality-pack
[Test] For TypeLowering lexicality verify fix.
2 parents 2017054 + e436429 commit 4fef3c8

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)