]> git.lizzy.rs Git - rust.git/blob - tests/ui/abi/extern/extern-pass-u64.rs
Rollup merge of #105526 - Xiretza:iter-from-generator-derive, r=scottmcm
[rust.git] / tests / ui / abi / extern / extern-pass-u64.rs
1 // run-pass
2 // ignore-wasm32-bare no libc for ffi testing
3
4 // Test a call to a function that takes/returns a u64.
5
6 #[link(name = "rust_test_helpers", kind = "static")]
7 extern "C" {
8     pub fn rust_dbg_extern_identity_u64(v: u64) -> u64;
9 }
10
11 pub fn main() {
12     unsafe {
13         assert_eq!(22, rust_dbg_extern_identity_u64(22));
14     }
15 }