Skip to content

Commit 2e91f3e

Browse files
authored
Merge pull request #6892 from slavapestov/fix-lldb-variadic-generics-test-5.9
Enable FIXME'd parts of TestSwiftVariadicGenerics, and pass -disable-availability-checking [5.9]
2 parents cdab9c6 + 5c235ca commit 2e91f3e

File tree

3 files changed

+9
-11
lines changed

3 files changed

+9
-11
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#C_SOURCES := main.c
22
SWIFT_SOURCES := a.swift
33
#HIDE_SWIFTMODULE = YES
4-
SWIFTFLAGS_EXTRAS = -Xfrontend -disable-round-trip-debug-types -enable-experimental-feature VariadicGenerics
4+
SWIFTFLAGS_EXTRAS = -Xfrontend -disable-round-trip-debug-types -enable-experimental-feature VariadicGenerics -Xfrontend -disable-availability-checking
55

66
include Makefile.rules

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,9 @@ def test(self):
3838
"Pack{(a.A, a.B)}", "more_ts", "i = 23", "d = 2.71"])
3939

4040
# f4(uvs: (a, b), (a, b))
41-
#process.Continue()
42-
# FIXME: Crashes the demangler.
43-
#self.expect("frame variable",
44-
# substrs=[""])
41+
process.Continue()
42+
self.expect("frame variable",
43+
substrs=[""])
4544

4645
# f5(ts: (a, b), (42, b))
4746
process.Continue()

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

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,11 @@ public func f3<each T>(ts: repeat each T, more_ts: repeat each T) {
2626

2727
f3(ts: a, b, more_ts: a, b)
2828

29-
// FIXME: Crashes the demangler.
30-
//public func f4<each U, each V>(uvs: repeat (each U, each V)) {
31-
// print("break here")
32-
//}
33-
//
34-
//f4(uvs: (a, b), (a, b))
29+
public func f4<each U, each V>(uvs: repeat (each U, each V)) {
30+
print("break here")
31+
}
32+
33+
f4(uvs: (a, b), (a, b))
3534

3635
public func f5<each T, U>(ts: repeat (each T, U)) {
3736
print("break here")

0 commit comments

Comments
 (0)