Add more small test programs.
This commit is contained in:
17
programs/basic_if.chalk
Normal file
17
programs/basic_if.chalk
Normal 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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user