]> git.proxmox.com Git - rustc.git/blob - src/test/ui/rfcs/rfc1717/library-override.rs
New upstream version 1.38.0+dfsg1
[rustc.git] / src / test / ui / rfcs / rfc1717 / library-override.rs
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 }