]> git.proxmox.com Git - rustc.git/blame - src/test/ui/abi/extern/extern-pass-double.rs
New upstream version 1.67.1+dfsg1
[rustc.git] / src / test / ui / abi / extern / extern-pass-double.rs
CommitLineData
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 5extern "C" {
223e47cc
LB
6 pub fn rust_dbg_extern_identity_double(v: f64) -> f64;
7}
8
9pub fn main() {
10 unsafe {
970d7e83 11 assert_eq!(22.0_f64, rust_dbg_extern_identity_double(22.0_f64));
223e47cc
LB
12 }
13}