File tree Expand file tree Collapse file tree 2 files changed +20
-1
lines changed Expand file tree Collapse file tree 2 files changed +20
-1
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 312faf31dfcce7a2d15495c5042d80a3e3b476c9
2
+ refs/heads/master: a350bea3130c985e9005ddcbf9819c0f811bbd57
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
5
5
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf
Original file line number Diff line number Diff line change
1
+ import libc:: { c_double, c_int} ;
2
+ import f64:: * ;
3
+
4
+ fn lgamma ( n : c_double , value : & mut int ) -> c_double {
5
+ ret m:: lgamma ( n, value as & mut c_int ) ;
6
+ }
7
+
8
+ #[ link_name = "m" ]
9
+ #[ abi = "cdecl" ]
10
+ native mod m {
11
+ #[ link_name="lgamma_r" ] fn lgamma ( n : c_double , sign : & mut c_int )
12
+ -> c_double ;
13
+ }
14
+
15
+ fn main ( ) {
16
+ let mut y: int = 5 ;
17
+ let x: & mut int = & mut y;
18
+ assert ( lgamma ( 1.0 as c_double , x) == 0.0 as c_double ) ;
19
+ }
You can’t perform that action at this time.
0 commit comments