From c6774f43f50471dc19583be102f5053d8da77c90 Mon Sep 17 00:00:00 2001 From: Shubham Sandeep Rastogi Date: Wed, 20 Oct 2021 14:51:11 -0700 Subject: [PATCH] Changed regex to check for non-zero line numbers with prologue_ends only and fixed bug with regex checking for multiple digit column numbers in .loc CHECK --- test/DebugInfo/top_level_code.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/DebugInfo/top_level_code.swift b/test/DebugInfo/top_level_code.swift index ec582ba351469..f7a7b024b11a8 100644 --- a/test/DebugInfo/top_level_code.swift +++ b/test/DebugInfo/top_level_code.swift @@ -7,7 +7,7 @@ func markUsed(_ t: T) {} // proceeds to the first line. // CHECK: .loc {{[0-9]}} 0 {{[0-9]}} // CHECK-NOT: Lfunc_end0: -// CHECK: .loc {{[0-9]}} {{[0-9][0-9]*}} {{[0-9]}} prologue_end +// CHECK: .loc {{[0-9]+}} {{[1-9][0-9]*}} {{[0-9]+}} prologue_end var a = 1 var b = 2 markUsed(a+b)