summaryrefslogtreecommitdiff
path: root/tests/test_pointer_4.tnsl
diff options
context:
space:
mode:
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
+;/
+