diff options
Diffstat (limited to 'tests/test_pointer.tnsl')
-rw-r--r-- | tests/test_pointer.tnsl | 11 |
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 ;/ |