mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 06:51:58 +00:00
15 lines
219 B
Rust
15 lines
219 B
Rust
#![no_std]
|
|
#![deny(warnings)]
|
|
|
|
#[inline(never)]
|
|
#[no_mangle]
|
|
pub fn wrapping_external_fn(a: u32) -> u32 {
|
|
a.wrapping_mul(a)
|
|
}
|
|
|
|
#[inline(never)]
|
|
#[no_mangle]
|
|
pub fn panicking_external_fn(a: u32) -> u32 {
|
|
a * a
|
|
}
|