rust/tests/run-make/target-specs/foo.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

25 lines
377 B
Rust
Raw Normal View History

#![feature(lang_items, no_core, auto_traits)]
#![no_core]
2020-09-01 16:12:52 -05:00
#[lang = "copy"]
trait Copy {}
2020-09-01 16:12:52 -05:00
#[lang = "sized"]
trait Sized {}
#[lang = "freeze"]
auto trait Freeze {}
2020-09-01 16:12:52 -05:00
#[lang = "start"]
fn start<T>(_main: fn() -> T, _argc: isize, _argv: *const *const u8, _sigpipe: u8) -> isize {
2020-09-01 16:12:52 -05:00
0
}
2020-09-01 16:12:52 -05:00
extern "C" {
fn _foo() -> [u8; 16];
}
fn _main() {
let _a = unsafe { _foo() };
}