rust/src/test/run-pass/invoke-external-foreign.rs

13 lines
269 B
Rust
Raw Normal View History

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