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