
fn exit(status_code: int) #[builtin(Exit)] {}

fn print(msg: string) #[builtin(Print)] {}
fn println(msg: string) { print(msg + "\n") }

mod my_module {
    
    fn inner_fn(a: int) -> int {
        a + 32
    }

}

fn main() {
    println("test function from module");
    let res = my_module::inner_fn(32);
    if res != 64 {
        println("failed");
        exit(1);
    }
    println("all tests ran successfully");
    exit(0);
}

