blob: 2c2cad4f82dca07a10b16cfef4c6c27090d9fdc0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
//@ run-pass
//@ dont-check-compiler-stderr (rust-lang/rust#54222)
//@ compile-flags: -lrust_test_helpers
#[link(name = "rust_test_helpers", kind = "static")]
extern "C" {
pub fn rust_dbg_extern_identity_u32(x: u32) -> u32;
}
fn main() {
unsafe {
rust_dbg_extern_identity_u32(42);
}
}
|