summaryrefslogtreecommitdiff
path: root/tests/test_pointer_3.tnsl
diff options
context:
space:
mode:
authorKyle Gunger <kgunger12@gmail.com>2024-03-12 02:36:32 -0400
committerKyle Gunger <kgunger12@gmail.com>2024-03-12 02:36:32 -0400
commitf0d47495c43299be7c365d8d8121ffb8086ab9cd (patch)
tree6f6c53d38dc91c855a154d94890afdbadcabe442 /tests/test_pointer_3.tnsl
parentca9e965a7756b2a7f8de645f53b66dd96c4f279b (diff)
pointer test
Diffstat (limited to 'tests/test_pointer_3.tnsl')
-rw-r--r--tests/test_pointer_3.tnsl15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/test_pointer_3.tnsl b/tests/test_pointer_3.tnsl
new file mode 100644
index 0000000..f1304f4
--- /dev/null
+++ b/tests/test_pointer_3.tnsl
@@ -0,0 +1,15 @@
+
+/; set (int` i)
+ i = i + 9
+;/
+
+/; set_b (~int j)
+ j` = j` + 60
+;/
+
+/; main [int]
+ int a = 0
+ set(~a)
+ set_b(~a)
+ return a
+;/