]> git.lizzy.rs Git - rust.git/blob - src/test/ui/abi/lib-defaults.rs
Rollup merge of #63539 - Centril:2015.await, r=oli-obk
[rust.git] / src / test / ui / abi / lib-defaults.rs
1 // run-pass
2 // dont-check-compiler-stderr (rust-lang/rust#54222)
3
4 // ignore-wasm32-bare no libc to test ffi with
5
6 // compile-flags: -lrust_test_helpers
7
8 #[link(name = "rust_test_helpers", kind = "static")]
9 extern "C" {
10     pub fn rust_dbg_extern_identity_u32(x: u32) -> u32;
11 }
12
13 fn main() {
14     unsafe {
15         rust_dbg_extern_identity_u32(42);
16     }
17 }