ableos/userland/aos_wasm_stress_test/src/main.rs

23 lines
282 B
Rust
Raw Normal View History

2022-01-13 08:54:33 -06:00
#![no_std]
#![no_main]
#![deny(improper_ctypes)]
2022-01-13 08:54:33 -06:00
#[macro_use]
mod libwasm;
#[no_mangle]
fn start() -> i32 {
let ret = unsafe { add(1, 2) };
info!(b"hello");
ret as i32
}
2022-01-13 08:54:33 -06:00
use core::panic::PanicInfo;
2022-01-13 08:54:33 -06:00
#[panic_handler]
fn panic(_info: &PanicInfo) -> ! {
loop {}
}