2012-07-09 15:41:16 -05:00
|
|
|
// xfail-fast
|
2012-07-06 23:52:31 -05:00
|
|
|
//aux-build:extern-crosscrate-source.rs
|
|
|
|
|
|
|
|
use externcallback(vers = "0.1");
|
|
|
|
|
|
|
|
fn fact(n: uint) -> uint {
|
2012-07-30 18:01:07 -05:00
|
|
|
debug!{"n = %?", n};
|
2012-07-06 23:52:31 -05:00
|
|
|
externcallback::rustrt::rust_dbg_call(externcallback::cb, n)
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let result = fact(10u);
|
2012-07-30 18:01:07 -05:00
|
|
|
debug!{"result = %?", result};
|
2012-07-06 23:52:31 -05:00
|
|
|
assert result == 3628800u;
|
|
|
|
}
|