summaryrefslogtreecommitdiff
path: root/simple.nl
diff options
context:
space:
mode:
authortomsmeding <tom.smeding@gmail.com>2017-01-27 09:48:49 +0100
committertomsmeding <tom.smeding@gmail.com>2017-01-27 09:52:12 +0100
commita1b82ce182f8fbeb19826aefe4d1fb179063a2f8 (patch)
tree3df9303d47e60d554e0a7151c2da610dba2cb6ea /simple.nl
parent22518d52828733a3fc2b0d827b1dbccefef46355 (diff)
If and while working
Diffstat (limited to 'simple.nl')
-rw-r--r--simple.nl8
1 files changed, 8 insertions, 0 deletions
diff --git a/simple.nl b/simple.nl
index 8a8180a..699fec2 100644
--- a/simple.nl
+++ b/simple.nl
@@ -8,5 +8,13 @@ int main(i32 argc, ptr(ptr(i8)) argv) {
int i = 40;
//i = g_var + 2 + 3;
int a = i + 2;
+ if (a == 41) {
+ return 10;
+ } else {
+ a = 20;
+ }
+ while (a < 42) {
+ a = a + 1;
+ }
return a;
}