2012-03-10 02:04:09 -06:00
|
|
|
// xfail-fast
|
2012-06-26 18:18:37 -05:00
|
|
|
// aux-build:foreign_lib.rs
|
2011-10-21 14:14:01 -05:00
|
|
|
|
|
|
|
// The purpose of this test is to check that we can
|
2011-11-09 18:04:07 -06:00
|
|
|
// successfully (and safely) invoke external, cdecl
|
2011-10-21 14:14:01 -05:00
|
|
|
// functions from outside the crate.
|
|
|
|
|
2012-06-26 18:18:37 -05:00
|
|
|
use foreign_lib;
|
2012-03-10 02:04:09 -06:00
|
|
|
|
2011-10-21 14:14:01 -05:00
|
|
|
fn main() {
|
2012-06-26 18:18:37 -05:00
|
|
|
let foo = foreign_lib::rustrt::last_os_error();
|
2011-11-18 18:29:01 -06:00
|
|
|
}
|