Skip to content

Commit 866f409

Browse files
committed
Relax checks in pgo-instrumentation codegen test
Don't require a specific order for the per-function globals, and don't require the locals to have private linkage (apparently internal linkage is also possible).
1 parent a5c3956 commit 866f409

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/test/codegen/pgo-instrumentation.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
// compile-flags: -Cprofile-generate -Ccodegen-units=1 -Cpanic=abort
66

77
// CHECK: @__llvm_profile_raw_version =
8-
// CHECK: @__profc_{{.*}}pgo_instrumentation{{.*}}some_function{{.*}} = private global
9-
// CHECK: @__profd_{{.*}}pgo_instrumentation{{.*}}some_function{{.*}} = private global
10-
// CHECK: @__profc_{{.*}}pgo_instrumentation{{.*}}some_other_function{{.*}} = private global
11-
// CHECK: @__profd_{{.*}}pgo_instrumentation{{.*}}some_other_function{{.*}} = private global
8+
// CHECK-DAG: @__profc_{{.*}}pgo_instrumentation{{.*}}some_function{{.*}} = {{.*}}global
9+
// CHECK-DAG: @__profd_{{.*}}pgo_instrumentation{{.*}}some_function{{.*}} = {{.*}}global
10+
// CHECK-DAG: @__profc_{{.*}}pgo_instrumentation{{.*}}some_other_function{{.*}} = {{.*}}global
11+
// CHECK-DAG: @__profd_{{.*}}pgo_instrumentation{{.*}}some_other_function{{.*}} = {{.*}}global
1212
// CHECK: @__llvm_profile_filename = {{.*}}"default_%m.profraw\00"{{.*}}
1313

1414
#![crate_type="lib"]

0 commit comments

Comments
 (0)