mirror of
https://github.com/Mercantec-GHC/h4-projekt-gruppe-0-sm.git
synced 2025-04-28 00:34:06 +02:00
18 lines
217 B
Rust
18 lines
217 B
Rust
|
|
#[c_function("print_int")]
|
|
fn print_int(value) {}
|
|
|
|
fn inner(value) {
|
|
print_int(value);
|
|
return 0;
|
|
}
|
|
|
|
fn main() {
|
|
let a = 4;
|
|
inner(a + 2);
|
|
return a;
|
|
}
|
|
|
|
// vim: syntax=rust commentstring=//\ %s
|
|
|