File tree Expand file tree Collapse file tree 2 files changed +20
-1
lines changed
branches/snap-stage3/src/test/run-pass 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
2
refs/heads/master: 2898dcc5d97da9427ac367542382b6239d9c0bbf
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
- refs/heads/snap-stage3: 312faf31dfcce7a2d15495c5042d80a3e3b476c9
4
+ refs/heads/snap-stage3: a350bea3130c985e9005ddcbf9819c0f811bbd57
5
5
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
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