about summary refs log tree commit diff
diff options
context:
space:
mode:
authorZalathar <Zalathar@users.noreply.github.com>2024-12-11 21:34:48 +1100
committerZalathar <Zalathar@users.noreply.github.com>2024-12-11 21:34:48 +1100
commit9e6b7c17c8d39563074c8ed8ba8a2ece72b3d243 (patch)
tree68a038a1610159db8717134a672d5724bd7e7ff9
parent6a8c016266a6b7514ff8284dc6d8b056e34b9399 (diff)
downloadrust-9e6b7c17c8d39563074c8ed8ba8a2ece72b3d243.tar.gz
rust-9e6b7c17c8d39563074c8ed8ba8a2ece72b3d243.zip
coverage: Adjust a codegen test to ignore the order of covmap/covfun globals
-rw-r--r--tests/codegen/instrument-coverage/testprog.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/codegen/instrument-coverage/testprog.rs b/tests/codegen/instrument-coverage/testprog.rs
index 655fe779fca..9e918499d57 100644
--- a/tests/codegen/instrument-coverage/testprog.rs
+++ b/tests/codegen/instrument-coverage/testprog.rs
@@ -73,11 +73,9 @@ fn main() {
 
 // WIN:          $__llvm_profile_runtime_user = comdat any
 
-// CHECK:        @__llvm_coverage_mapping = private constant
-// CHECK-SAME:   section "[[INSTR_PROF_COVMAP]]", align 8
+// CHECK-DAG:    @__llvm_coverage_mapping = private constant {{.*}}, section "[[INSTR_PROF_COVMAP]]", align 8
 
-// CHECK:        @__covrec_{{[A-F0-9]+}}u = linkonce_odr hidden constant
-// CHECK-SAME:   section "[[INSTR_PROF_COVFUN]]"[[COMDAT_IF_SUPPORTED]], align 8
+// CHECK-DAG:    @__covrec_{{[A-F0-9]+}}u = linkonce_odr hidden constant {{.*}}, section "[[INSTR_PROF_COVFUN]]"[[COMDAT_IF_SUPPORTED]], align 8
 
 // WIN:          @__llvm_profile_runtime = external{{.*}}global i32