Skip to content

Commit 7e206ce

Browse files
Changed CHECK to not conform to specific line numbers, but just check for a non-zero line number
1 parent 99a24d4 commit 7e206ce

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)