summaryrefslogtreecommitdiff
path: root/tests/test_pointer.tnsl
diff options
context:
space:
mode:
authorKyle Gunger <kgunger12@gmail.com>2024-03-12 00:23:28 -0400
committerKyle Gunger <kgunger12@gmail.com>2024-03-12 00:23:28 -0400
commit644a06a5b13b5a129528618050a9dff4f5281be8 (patch)
tree31bf53b6b2555940965abad59346ea8ec6817a1e /tests/test_pointer.tnsl
parent6ff62d5fe2aebc78b3bc2930c7318d6ce288b61b (diff)
update tests
Diffstat (limited to 'tests/test_pointer.tnsl')
-rw-r--r--tests/test_pointer.tnsl11
1 files changed, 8 insertions, 3 deletions
diff --git a/tests/test_pointer.tnsl b/tests/test_pointer.tnsl
index 5fe1a36..1b264b4 100644
--- a/tests/test_pointer.tnsl
+++ b/tests/test_pointer.tnsl
@@ -1,6 +1,11 @@
+struct Dummy {
+ int i, j
+}
+
/; main [int]
- int i = 0
- ~int j = ~i
+ Dummy i
+ i.i = 0
+ ~int j = ~i.i
j` = 69
- return i
+ return i.i
;/