]>
Commit | Line | Data |
---|---|---|
b7449926 | 1 | // run-pass |
abe05a73 | 2 | // ignore-wasm32-bare no libc for ffi testing |
c34b1796 | 3 | |
476ff2be | 4 | #[link(name = "rust_test_helpers", kind = "static")] |
5869c6ff | 5 | extern "C" { |
223e47cc LB |
6 | pub fn rust_dbg_extern_identity_double(v: f64) -> f64; |
7 | } | |
8 | ||
9 | pub fn main() { | |
10 | unsafe { | |
970d7e83 | 11 | assert_eq!(22.0_f64, rust_dbg_extern_identity_double(22.0_f64)); |
223e47cc LB |
12 | } |
13 | } |