]>
Commit | Line | Data |
---|---|---|
0bf4aa26 XL |
1 | // dont-check-compiler-stderr (rust-lang/rust#54222) |
2 | ||
abe05a73 XL |
3 | // ignore-wasm32-bare no libc to test ffi with |
4 | ||
041b39d2 | 5 | // compile-flags: -lrust_test_helpers |
8bb4bdeb | 6 | |
041b39d2 | 7 | #[link(name = "rust_test_helpers", kind = "static")] |
8bb4bdeb | 8 | extern "C" { |
041b39d2 | 9 | pub fn rust_dbg_extern_identity_u32(x: u32) -> u32; |
a7813a04 XL |
10 | } |
11 | ||
12 | fn main() { | |
8bb4bdeb | 13 | unsafe { |
041b39d2 | 14 | rust_dbg_extern_identity_u32(42); |
8bb4bdeb | 15 | } |
54a0048b | 16 | } |