Skip to content

Commit c012f2d

Browse files
Merge pull request #6487 from adrian-prantl/oh-no-more-variadic-tests
Enable disabled variadic generic tests.
2 parents ce9b4d3 + 16b18f9 commit c012f2d

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

lldb/test/API/lang/swift/variadic_generics/TestSwiftVariadicGenerics.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def test(self):
2727
# f3(ts: a, b, more_ts: a, b)
2828
process.Continue()
2929
self.expect("frame variable",
30-
substrs=["Pack{(a.A, a.B)}", "ts", "i = 23", # FIXME! "d = 2.71",
30+
substrs=["Pack{(a.A, a.B)}", "ts", "i = 23", "d = 2.71",
3131
"Pack{(a.A, a.B)}", "more_ts", "i = 23", "d = 2.71"])
3232

3333
# f4(uvs: (a, b), (a, b))
@@ -51,9 +51,9 @@ def test(self):
5151
# f7(us: a, vs: 1, b, more_us: a, more_vs: 2, b)
5252
process.Continue()
5353
self.expect("frame variable",
54-
substrs=["Pack{(a.A)}", "us", # FIXME: "i = 23"
54+
substrs=["Pack{(a.A)}", "us", "i = 23",
5555
"Pack{(Int, a.B)}", "vs", "= 1", "d = 2.71",
56-
"Pack{(a.A)}", "more_us", #FIXME: "i = 23"
56+
"Pack{(a.A)}", "more_us", "i = 23",
5757
"Pack{(Int, a.B)}", "more_vs", "= 2", "d = 2.71"
5858
])
5959

lldb/test/API/lang/swift/variadic_generics/a.swift

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,11 @@ public func f7<each U, each V>(us: repeat each U, vs: repeat each V, more_us: re
5151
}
5252

5353
f7(us: a, vs: 1, b, more_us: a, more_vs: 2, b)
54+
55+
//FIXME: Crashes the compiler.
56+
//struct S<each T> {
57+
// let vals : repeat each T
58+
//}
59+
//
60+
//let variadic_struct = S<Int, String, Float>(vals: (23, "hello", 3.14))
61+
//print("break here")

0 commit comments

Comments
 (0)