summaryrefslogtreecommitdiff
path: root/test.nl
diff options
context:
space:
mode:
Diffstat (limited to 'test.nl')
-rw-r--r--test.nl18
1 files changed, 18 insertions, 0 deletions
diff --git a/test.nl b/test.nl
new file mode 100644
index 0000000..99786fc
--- /dev/null
+++ b/test.nl
@@ -0,0 +1,18 @@
+type int = i32;
+type char = i8;
+
+int glob = 10;
+
+int main(int argc, ptr(char) argv) {
+ 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;
+}