Inna Palant | ff3f07a | 2019-07-11 16:15:26 -0700 | [diff] [blame] | 1 | // run-pass |
2 | // ignore-wasm32-bare no libc to test ffi with | ||||
3 | // compile-flags: -lstatic=wronglibrary:rust_test_helpers | ||||
4 | |||||
5 | #[link(name = "wronglibrary", kind = "dylib")] | ||||
6 | extern "C" { | ||||
7 | pub fn rust_dbg_extern_identity_u32(x: u32) -> u32; | ||||
8 | } | ||||
9 | |||||
10 | fn main() { | ||||
11 | unsafe { | ||||
12 | rust_dbg_extern_identity_u32(42); | ||||
13 | } | ||||
14 | } |