From be4e0898ccf4f6514a94c3b89ab48bd3a8268ce3 Mon Sep 17 00:00:00 2001 From: Scott McMurray Date: Sun, 5 Jun 2022 16:02:10 -0700 Subject: [PATCH] Fix the coldcc codegen test on wasm32 --- src/test/codegen/cold-call-declare-and-call.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/test/codegen/cold-call-declare-and-call.rs b/src/test/codegen/cold-call-declare-and-call.rs index 14fb8deb4fdb..71d49478bfc7 100644 --- a/src/test/codegen/cold-call-declare-and-call.rs +++ b/src/test/codegen/cold-call-declare-and-call.rs @@ -3,7 +3,9 @@ #![crate_type = "lib"] #![feature(rust_cold_cc)] -// CHECK: define coldcc void @this_should_never_happen(i16 +// wasm marks the definition as `dso_local`, so allow that as optional. + +// CHECK: define{{( dso_local)?}} coldcc void @this_should_never_happen(i16 // CHECK: call coldcc void @this_should_never_happen(i16 #[no_mangle]