2015-01-29 01:19:28 -06:00
|
|
|
// Copyright 2014-2015 The Rust Project Developers. See the COPYRIGHT
|
2014-01-16 12:12:31 -06:00
|
|
|
// 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.
|
|
|
|
|
|
|
|
// aux-build:lang-item-public.rs
|
|
|
|
// ignore-android
|
|
|
|
|
2015-02-05 18:14:42 -06:00
|
|
|
#![feature(lang_items, start, no_std)]
|
2014-04-06 00:18:52 -05:00
|
|
|
#![no_std]
|
2014-01-16 12:12:31 -06:00
|
|
|
|
2015-03-27 12:22:44 -05:00
|
|
|
extern crate lang_item_public as lang_lib;
|
2014-01-16 12:12:31 -06:00
|
|
|
|
|
|
|
#[cfg(target_os = "linux")]
|
|
|
|
#[link(name = "c")]
|
|
|
|
extern {}
|
|
|
|
|
|
|
|
#[cfg(target_os = "android")]
|
|
|
|
#[link(name = "c")]
|
|
|
|
extern {}
|
|
|
|
|
|
|
|
#[cfg(target_os = "freebsd")]
|
|
|
|
#[link(name = "execinfo")]
|
|
|
|
extern {}
|
|
|
|
|
2014-10-11 09:16:38 -05:00
|
|
|
#[cfg(target_os = "freebsd")]
|
|
|
|
#[link(name = "c")]
|
|
|
|
extern {}
|
|
|
|
|
2014-07-30 19:23:35 -05:00
|
|
|
#[cfg(target_os = "dragonfly")]
|
|
|
|
#[link(name = "c")]
|
|
|
|
extern {}
|
|
|
|
|
2015-01-17 01:51:04 -06:00
|
|
|
#[cfg(any(target_os = "bitrig", target_os = "openbsd"))]
|
2015-01-29 01:19:28 -06:00
|
|
|
#[link(name = "c")]
|
|
|
|
extern {}
|
|
|
|
|
2014-01-16 12:12:31 -06:00
|
|
|
#[cfg(target_os = "macos")]
|
|
|
|
#[link(name = "System")]
|
|
|
|
extern {}
|
|
|
|
|
|
|
|
#[start]
|
2015-03-25 19:06:52 -05:00
|
|
|
fn main(_: isize, _: *const *const u8) -> isize {
|
2014-01-16 12:12:31 -06:00
|
|
|
1 % 1
|
|
|
|
}
|