summaryrefslogtreecommitdiffstats
path: root/src/test/run-make/wasm-symbols-not-imported/foo.rs
blob: b25bdc9800d17dd3d0483856933528e3c11280e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#![crate_type = "cdylib"]
#![no_std]

use core::panic::PanicInfo;

#[no_mangle]
pub extern fn foo() {
    panic!()
}

#[panic_handler]
fn panic(_info: &PanicInfo) -> ! {
    loop {}
}