]>
git.proxmox.com Git - rustc.git/blob - src/test/run-pass/lang-item-public.rs
1 // Copyright 2014-2015 The Rust Project Developers. See the COPYRIGHT
2 // file at the top-level directory of this distribution and at
3 // http://rust-lang.org/COPYRIGHT.
5 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8 // option. This file may not be copied, modified, or distributed
9 // except according to those terms.
11 // aux-build:lang-item-public.rs
14 #![feature(lang_items, start, no_std)]
17 extern crate lang_item_public
as lang_lib
;
19 #[cfg(target_os = "linux")]
23 #[cfg(target_os = "android")]
27 #[cfg(target_os = "freebsd")]
28 #[link(name = "execinfo")]
31 #[cfg(target_os = "freebsd")]
35 #[cfg(target_os = "dragonfly")]
39 #[cfg(any(target_os = "bitrig", target_os = "openbsd"))]
43 #[cfg(target_os = "macos")]
44 #[link(name = "System")]
48 fn main(_
: isize, _
: *const *const u8) -> isize {