diff options
| author | Kai Gunger <kgunger12@gmail.com> | 2026-05-09 20:53:10 -0400 |
|---|---|---|
| committer | Kai Gunger <kgunger12@gmail.com> | 2026-05-09 20:53:10 -0400 |
| commit | 6a605be056216c5979561eb51f723f84e9f0c6d0 (patch) | |
| tree | 9ef49310e7475c7e8062026dfe53b765ab646d11 /tnslc/test.tnsl | |
| parent | 9038ecd9423e6181063ae5a9846c617a92e6ceaf (diff) | |
[tnslc] passable bool ops for noworigin
Diffstat (limited to 'tnslc/test.tnsl')
| -rw-r--r-- | tnslc/test.tnsl | 25 |
1 files changed, 11 insertions, 14 deletions
diff --git a/tnslc/test.tnsl b/tnslc/test.tnsl index 715ddf2..896897e 100644 --- a/tnslc/test.tnsl +++ b/tnslc/test.tnsl @@ -1,19 +1,16 @@ -struct A { - int a, b -} - -/; method A - /; add_one - int a = self.a + 1 - ;/ +/; five [int] + return 5 ;/ /; main (int argc, ~~uint8 argv) [int] - A a - a.a = 1 - a.b = 2 - a.add_one() - return a.a + a.b -;/ + # Mov input from C + asm "mov r10, rdi" + asm "mov r11, rsi" + /; if (argc < 5 && argc > 1) + return argc + ;/ + + return five() +;/ |