Skip to content

Commit 0ce9d26

Browse files
authored
Merge pull request #28530 from JDevlieghere/re-enable-local-vars.swift.gyb
[test] Re-enable local-vars.swift.gyb
2 parents f0157b0 + 7e3ba68 commit 0ce9d26

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

test/DebugInfo/local-vars.swift.gyb

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// test only verifies that the variables show up in the debug info at
33
// all. There are other tests testing liveness and representation.
44

5-
// REQUIRES: rdar47777473
65
// RUN: %gyb %s -o %t.swift
76
// RUN: %target-swift-frontend %t.swift -g -emit-ir -o - | %FileCheck %t.swift
87
// RUN: %target-swift-frontend %t.swift -g -c -o %t.o
@@ -67,7 +66,7 @@ type_initializer_map = [
6766
("(Int, C)", "(42, C(42))"),
6867
("C", "C(42)"),
6968
("S", "S()"),
70-
("SLarge", "SLarge(tuple: (1,2,3,4,5,6,7,8))"),
69+
("SLarge", "SLarge(tuple: (1,2,3,4,5,6,7,8))"),
7170
#// Enums.
7271
("ENoPayload", ".two"),
7372
("ESinglePayload", ".two"),
@@ -86,14 +85,14 @@ def derive_name((type, val)):
8685
for name, type, val in map(derive_name, type_initializer_map):
8786
generic = (type in ['T', 'U'])
8887
function = "->" in type
89-
}%
88+
}%
9089
% if generic:
9190
public class ContextA_${name}<T, U : Proto> {
9291
let t : T
9392
let u : U
9493
init(_ t: T, _ u: U) { self.t = t; self.u = u; }
9594
% end
96-
95+
9796
public func constant_${name}() -> ${type} {
9897
let v : ${type} = ${val}
9998
// CHECK: !DILocalVariable(name: "v",{{.*}} line: [[@LINE-1]]
@@ -223,7 +222,7 @@ public func case_let_${name}() {
223222
// DWARF-NOT: DW_TAG
224223
// DWARF: DW_AT_name ("v")
225224
}
226-
225+
227226
public func optional_${name}() -> ${type}? {
228227
return constant_${name}();
229228
}
@@ -402,7 +401,7 @@ public func arg_tuple_${name}(_ v: (${type}, ${type})) {
402401
// DWARF: DW_AT_name {{.*}}"y"
403402
use(y)
404403
}
405-
404+
406405
public func closure_capture_${name}() {
407406
let v : ${type} = constant_${name}();
408407
// CHECK: !DILocalVariable(name: "v",{{.*}} line: [[@LINE-1]]
@@ -465,7 +464,7 @@ public func closure_capture_byref_${name}() {
465464
// DWARF: DW_AT_artificial
466465
% end
467466
}
468-
467+
469468
% if generic:
470469
} // End of Context_${name}.
471470
% end

0 commit comments

Comments
 (0)