Skip to content

Commit ecb1466

Browse files
committed
Simplify this testcase.
1 parent 284736c commit ecb1466

File tree

1 file changed

+2
-13
lines changed

1 file changed

+2
-13
lines changed

test/DebugInfo/linetable.swift

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,7 @@ func markUsed<T>(t: T) {}
1212
class MyClass
1313
{
1414
var x : Int64
15-
init(input: Int64)
16-
{
17-
x = 2 * input
18-
}
19-
15+
init(input: Int64) { x = input }
2016
func do_something(input: Int64) -> Int64
2117
{
2218
return x * input;
@@ -47,13 +43,6 @@ func main(x: Int64) -> Void
4743
}
4844
)
4945

50-
// ASM-CHECK: .loc [[FILEID]] [[@LINE+1]] 5
51-
call_me (
52-
{
53-
markUsed(x)
54-
}
55-
)
56-
5746
// The swift_releases at the end should not jump to the point where
5847
// that memory was retained/allocated and also not to line 0.
5948
// ASM-CHECK-NOT: .loc [[FILEID]] 0 0
@@ -65,6 +54,6 @@ func main(x: Int64) -> Void
6554
// ASM-CHECK-NOT: retq
6655
// The end-of-prologue should have a valid location (0 is ok, too).
6756
// ASM-CHECK: .loc [[FILEID]] 0 {{[0-9]+}} prologue_end
68-
// ASM-CHECK: .loc [[FILEID]] 37 {{[0-9]+}}
57+
// ASM-CHECK: .loc [[FILEID]] 33 {{[0-9]+}}
6958

7059
main(30)

0 commit comments

Comments
 (0)