summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-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
+;/