mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 09:14:20 +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
|
|
}
|