Skip to content

Commit b92491d

Browse files
Merge pull request swiftlang#39748 from rastogishubham/46438876
Remove check for line number as a value of that is a constant hardcoded number off the CHECK line number and replace it with a CHECK for a non-zero line number instead
2 parents 177b60a + 7e206ce commit b92491d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/DebugInfo/top_level_code.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ func markUsed<T>(_ t: T) {}
77
// proceeds to the first line.
88
// CHECK: .loc {{[0-9]}} 0 {{[0-9]}}
99
// CHECK-NOT: Lfunc_end0:
10-
// CHECK: .loc {{[0-9]}} [[@LINE+1]] {{[0-9]}} prologue_end
10+
// CHECK: .loc {{[0-9]}} {{[0-9][0-9]*}} {{[0-9]}} prologue_end
1111
var a = 1
1212
var b = 2
1313
markUsed(a+b)

0 commit comments

Comments
 (0)