tests for local variables

This commit is contained in:
Josh Wolfe
2015-12-03 11:06:05 -07:00
parent 5af4ef88ac
commit 0c2cc9d2cf
2 changed files with 46 additions and 2 deletions

View File

@@ -9,6 +9,8 @@ export fn _start() -> unreachable {
let b = 2;
// let c : i32; // not yet support for const variables
// let d; // parse error
puts("Hello, world!");
exit(a + b);
if (a + b == 3) {
puts("OK");
}
exit(0);
}