2012-12-10 17:32:48 -08:00
|
|
|
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
|
|
|
|
// file at the top-level directory of this distribution and at
|
|
|
|
// http://rust-lang.org/COPYRIGHT.
|
|
|
|
//
|
|
|
|
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
|
|
|
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
|
|
|
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
|
|
|
// option. This file may not be copied, modified, or distributed
|
|
|
|
// except according to those terms.
|
|
|
|
|
2012-03-10 00:04:09 -08:00
|
|
|
// xfail-fast
|
2012-06-26 16:18:37 -07:00
|
|
|
// aux-build:foreign_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-09-11 17:46:20 -07:00
|
|
|
extern mod foreign_lib;
|
2012-03-10 00:04:09 -08:00
|
|
|
|
2013-02-01 19:43:17 -08:00
|
|
|
pub fn main() {
|
2013-02-11 23:27:12 -05:00
|
|
|
let foo = foreign_lib::rustrt::rust_get_argc();
|
2011-11-18 16:29:01 -08:00
|
|
|
}
|