summaryrefslogtreecommitdiff
path: root/tests/test_pointer_4.tnsl
diff options
context:
space:
mode:
authorKyle Gunger <kgunger12@gmail.com>2024-03-25 16:37:07 -0400
committerKyle Gunger <kgunger12@gmail.com>2024-03-25 16:37:07 -0400
commit00f4940ff1c19f3659779b2db078b85f178cb5ab (patch)
treec7aca037e64dbe184085e7342c187eef5ffb3c40 /tests/test_pointer_4.tnsl
parent8f86708daa697274a39f8b0af42291a4ed4573eb (diff)
More tests, dec and inc postfix
Diffstat (limited to 'tests/test_pointer_4.tnsl')
-rw-r--r--tests/test_pointer_4.tnsl14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/test_pointer_4.tnsl b/tests/test_pointer_4.tnsl
new file mode 100644
index 0000000..f128285
--- /dev/null
+++ b/tests/test_pointer_4.tnsl
@@ -0,0 +1,14 @@
+/; set (int` i)
+ i = 69
+;/
+
+/; set_b (int` j)
+ set(j)
+;/
+
+/; main [int]
+ int k = 0
+ set_b(~k)
+ return k
+;/
+