Skip to content
Snippets Groups Projects
Commit dd147734 authored by Max New's avatar Max New
Browse files

include the stub file

parent f6936d1c
No related branches found
No related tags found
No related merge requests found
#[link(name = "compiled_code", kind = "static")]
extern "sysv64" {
// The \x01 here is an undocumented feature of LLVM that ensures
// it does not add an underscore in front of the name.
#[link_name = "\x01start_here"]
fn start_here() -> i64;
}
fn main() {
let output = unsafe { start_here() };
println!("{}", output);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment