Fix wasm_exceptions test

This commit is contained in:
Gary Guo 2024-06-19 20:06:56 +01:00
parent 4c4d62d74f
commit bb2716effd
2 changed files with 8 additions and 8 deletions

View File

@ -6,12 +6,12 @@
#![crate_type = "lib"] #![crate_type = "lib"]
#![feature(core_intrinsics)] #![feature(core_intrinsics)]
#![feature(rustc_attrs)]
extern "C-unwind" {
fn may_panic();
}
extern "C" { extern "C" {
fn may_panic();
#[rustc_nounwind]
fn log_number(number: usize); fn log_number(number: usize);
} }

View File

@ -3,12 +3,12 @@
#![crate_type = "lib"] #![crate_type = "lib"]
#![feature(core_intrinsics)] #![feature(core_intrinsics)]
#![feature(rustc_attrs)]
extern "C-unwind" {
fn may_panic();
}
extern "C" { extern "C" {
fn may_panic();
#[rustc_nounwind]
fn log_number(number: usize); fn log_number(number: usize);
} }