mirror of
https://git.sfja.dk/Mikkel/slige.git
synced 2025-01-18 18:16:31 +00:00
20 lines
394 B
Plaintext
20 lines
394 B
Plaintext
|
|
|
|
fn exit(status_code: int) #[builtin(Exit)] {}
|
|
|
|
fn print(msg: string) #[builtin(Print)] {}
|
|
fn println(msg: string) { print(msg + "\n") }
|
|
|
|
mod inner "import_modules_inner.slg";
|
|
|
|
fn main() {
|
|
println("test function from module");
|
|
let res = inner::inner_fn(32);
|
|
if res != 64 {
|
|
println("failed");
|
|
exit(1);
|
|
}
|
|
println("all tests ran successfully");
|
|
exit(0);
|
|
}
|