2012-12-11 01:32:48 +00: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.
|
|
|
|
|
2013-05-25 02:35:29 +00:00
|
|
|
use std::libc;
|
|
|
|
|
2012-08-29 19:22:05 +00:00
|
|
|
#[abi = "cdecl"]
|
|
|
|
#[link_name = "rustrt"]
|
2012-08-31 00:09:04 +00:00
|
|
|
extern {
|
2013-02-12 04:27:12 +00:00
|
|
|
fn rust_get_argc() -> libc::c_int;
|
2012-08-29 19:22:05 +00:00
|
|
|
}
|
|
|
|
|
2013-02-02 03:43:17 +00:00
|
|
|
pub fn main() {
|
2013-01-24 00:29:31 +00:00
|
|
|
unsafe {
|
2013-02-12 04:27:12 +00:00
|
|
|
let _ = rust_get_argc();
|
2013-01-24 00:29:31 +00:00
|
|
|
}
|
2012-08-31 00:09:04 +00:00
|
|
|
}
|