summaryrefslogtreecommitdiff
path: root/tnslc/simple.tnsl
diff options
context:
space:
mode:
authorKyle Gunger <kgunger12@gmail.com>2023-03-18 17:16:50 -0400
committerKyle Gunger <kgunger12@gmail.com>2023-03-18 17:16:50 -0400
commitd21c66af96878e5efff081ec861af4350d37bffe (patch)
tree9e01632266a4f83095da33f1c602c109e3af26fc /tnslc/simple.tnsl
parentf51b86ff3cf980fa558dfafd24ffd4a327e0890b (diff)
Reference and dereference
Diffstat (limited to 'tnslc/simple.tnsl')
-rw-r--r--tnslc/simple.tnsl5
1 files changed, 4 insertions, 1 deletions
diff --git a/tnslc/simple.tnsl b/tnslc/simple.tnsl
index 91e2e91..f722359 100644
--- a/tnslc/simple.tnsl
+++ b/tnslc/simple.tnsl
@@ -12,5 +12,8 @@
/; main [int]
- return 0
+ ~int b = ~mod.a
+ ~int c = b+8
+ ~~int d = ~c
+ return d``
;/