diff options
author | Kyle Gunger <kgunger12@gmail.com> | 2024-03-12 02:36:32 -0400 |
---|---|---|
committer | Kyle Gunger <kgunger12@gmail.com> | 2024-03-12 02:36:32 -0400 |
commit | f0d47495c43299be7c365d8d8121ffb8086ab9cd (patch) | |
tree | 6f6c53d38dc91c855a154d94890afdbadcabe442 /tests | |
parent | ca9e965a7756b2a7f8de645f53b66dd96c4f279b (diff) |
pointer test
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_pointer_3.tnsl | 15 |
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 +;/ |