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

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

25 lines
363 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"]
2021-09-10 08:33:06 -05:00
fn start<T>(_main: fn() -> T, _argc: isize, _argv: *const *const 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() };
}