mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
13 lines
267 B
Rust
13 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);
|
|
}
|