提交 31786467 编写于 作者: T Tim Chevalier

Revert "Add test for issue 2214"

This reverts commit 290206b1.

Forgot to add the actual native code, temporarily reverting.
上级 559c30ab
import libc::{c_double, c_int};
fn lgamma(n: c_double, value: &mut int) -> c_double {
ret m::lgamma(n, value as &mut c_int);
}
#[link_name = "m"]
#[abi = "cdecl"]
native mod m {
#[link_name="lgamma_r"] fn lgamma(n: c_double, sign: &mut c_int)
-> c_double;
}
fn main() {
let mut y: int = 5;
let x: &mut int = &mut y;
assert (lgamma(1.0 as c_double, x) == 42.0 as c_double);
}
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册