summaryrefslogtreecommitdiff
path: root/nl/test.nl
diff options
context:
space:
mode:
Diffstat (limited to 'nl/test.nl')
-rw-r--r--nl/test.nl19
1 files changed, 19 insertions, 0 deletions
diff --git a/nl/test.nl b/nl/test.nl
new file mode 100644
index 0000000..5e23bf3
--- /dev/null
+++ b/nl/test.nl
@@ -0,0 +1,19 @@
+type int = i32;
+type char = i8;
+
+int glob;
+
+int main(int argc, ptr(char) argv) {
+ glob = 10;
+ int kaas = glob + 2;
+ glob = 2 > 1 || 1 == 1 % 10;
+ while (glob < 20) {
+ if (kaas == 12) glob = glob + 3 / 2;
+ else glob = glob - 1;
+ if (glob < -10) return glob;
+ if (glob < -12) {
+ return glob;
+ } else {}
+ }
+ return kaas;
+}