mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 06:22:00 +00:00
14 lines
267 B
Rust
14 lines
267 B
Rust
// run-pass
|
|
// aux-build:issue-25185-1.rs
|
|
// aux-build:issue-25185-2.rs
|
|
// ignore-wasm32-bare no libc for ffi testing
|
|
|
|
extern crate issue_25185_2;
|
|
|
|
fn main() {
|
|
let x = unsafe {
|
|
issue_25185_2::rust_dbg_extern_identity_u32(1)
|
|
};
|
|
assert_eq!(x, 1);
|
|
}
|