2
2
// test only verifies that the variables show up in the debug info at
3
3
// all. There are other tests testing liveness and representation.
4
4
5
- // REQUIRES: rdar47777473
6
5
// RUN: %gyb %s -o %t.swift
7
6
// RUN: %target-swift-frontend %t.swift -g -emit-ir -o - | %FileCheck %t.swift
8
7
// RUN: %target-swift-frontend %t.swift -g -c -o %t.o
@@ -67,7 +66,7 @@ type_initializer_map = [
67
66
("(Int, C)", "(42, C(42))"),
68
67
("C", "C(42)"),
69
68
("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))"),
71
70
#// Enums.
72
71
("ENoPayload", ".two"),
73
72
("ESinglePayload", ".two"),
@@ -86,14 +85,14 @@ def derive_name((type, val)):
86
85
for name, type, val in map(derive_name, type_initializer_map):
87
86
generic = (type in ['T', 'U'])
88
87
function = "->" in type
89
- }%
88
+ }%
90
89
% if generic:
91
90
public class ContextA_${name}<T, U : Proto> {
92
91
let t : T
93
92
let u : U
94
93
init(_ t: T, _ u: U) { self.t = t; self.u = u; }
95
94
% end
96
-
95
+
97
96
public func constant_${name}() -> ${type} {
98
97
let v : ${type} = ${val}
99
98
// CHECK: !DILocalVariable(name: "v",{{.*}} line: [[@LINE-1]]
@@ -223,7 +222,7 @@ public func case_let_${name}() {
223
222
// DWARF-NOT: DW_TAG
224
223
// DWARF: DW_AT_name ("v")
225
224
}
226
-
225
+
227
226
public func optional_${name}() -> ${type}? {
228
227
return constant_${name}();
229
228
}
@@ -402,7 +401,7 @@ public func arg_tuple_${name}(_ v: (${type}, ${type})) {
402
401
// DWARF: DW_AT_name {{.*}}"y"
403
402
use(y)
404
403
}
405
-
404
+
406
405
public func closure_capture_${name}() {
407
406
let v : ${type} = constant_${name}();
408
407
// CHECK: !DILocalVariable(name: "v",{{.*}} line: [[@LINE-1]]
@@ -465,7 +464,7 @@ public func closure_capture_byref_${name}() {
465
464
// DWARF: DW_AT_artificial
466
465
% end
467
466
}
468
-
467
+
469
468
% if generic:
470
469
} // End of Context_${name}.
471
470
% end
0 commit comments