Add more small test programs.

This commit is contained in:
2018-08-05 14:25:40 -07:00
parent 230a50c532
commit 61fb44bbce
9 changed files with 59 additions and 0 deletions

17
programs/basic_if.chalk Normal file
View File

@@ -0,0 +1,17 @@
fun main(): u0 {
var a = 3+3;
if(a) {
a = 0;
}
var b = 0;
if(b) {
b = 4;
}
if(b) {
b = 4;
} else {
b = 5;
}
}