Skip to content

Commit 9e6b7c1

Browse files
committed
coverage: Adjust a codegen test to ignore the order of covmap/covfun globals
1 parent 6a8c016 commit 9e6b7c1

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

tests/codegen/instrument-coverage/testprog.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,9 @@ fn main() {
7373

7474
// WIN: $__llvm_profile_runtime_user = comdat any
7575

76-
// CHECK: @__llvm_coverage_mapping = private constant
77-
// CHECK-SAME: section "[[INSTR_PROF_COVMAP]]", align 8
76+
// CHECK-DAG: @__llvm_coverage_mapping = private constant {{.*}}, section "[[INSTR_PROF_COVMAP]]", align 8
7877

79-
// CHECK: @__covrec_{{[A-F0-9]+}}u = linkonce_odr hidden constant
80-
// CHECK-SAME: section "[[INSTR_PROF_COVFUN]]"[[COMDAT_IF_SUPPORTED]], align 8
78+
// CHECK-DAG: @__covrec_{{[A-F0-9]+}}u = linkonce_odr hidden constant {{.*}}, section "[[INSTR_PROF_COVFUN]]"[[COMDAT_IF_SUPPORTED]], align 8
8179

8280
// WIN: @__llvm_profile_runtime = external{{.*}}global i32
8381

0 commit comments

Comments
 (0)