diff options
| author | Kai Gunger <kgunger12@gmail.com> | 2026-07-08 02:14:13 -0400 |
|---|---|---|
| committer | Kai Gunger <kgunger12@gmail.com> | 2026-07-08 02:14:13 -0400 |
| commit | f7ececd879b731194f64123f746ac49b7781fc68 (patch) | |
| tree | d4f3af89e3a138bbd8a9f65c81d1b7033bf81152 /tnslc/test.tnsl | |
| parent | f9665d8aa06e11730a9d6e7af3f98ccefb324bbf (diff) | |
[tnslc] fixes for stack location when returning structs
Diffstat (limited to 'tnslc/test.tnsl')
| -rw-r--r-- | tnslc/test.tnsl | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/tnslc/test.tnsl b/tnslc/test.tnsl index c91eee4..a130386 100644 --- a/tnslc/test.tnsl +++ b/tnslc/test.tnsl @@ -1,13 +1,20 @@ -struct Init { - ~int a, b +struct TTT { + int a, b, c } -/; method Init +/; asdf [TTT] + TTT out + out.a = 0 + out.b = 0 + return out +;/ + +/; main (int argc, ~~uint8 argv) [int] + + TTT out + out = asdf() - /; set (int a) - self.b` = a - ;/ - + return out.a ;/ |