diff options
| author | Kai Gunger <kgunger12@gmail.com> | 2026-06-14 03:24:29 -0400 |
|---|---|---|
| committer | Kai Gunger <kgunger12@gmail.com> | 2026-06-14 03:24:29 -0400 |
| commit | a79a6d8f9be059b2bf2c1fc6548592546322f53d (patch) | |
| tree | db99ee1b932c2e668929c02098fd5c78e0ee6cb6 /tnslc/test.tnsl | |
| parent | 20b9f5a8418670665ff5c5d3f5de538d35ec161b (diff) | |
[tnslc] string literal gen in func scopedevel
Diffstat (limited to 'tnslc/test.tnsl')
| -rw-r--r-- | tnslc/test.tnsl | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/tnslc/test.tnsl b/tnslc/test.tnsl index 896897e..77e1777 100644 --- a/tnslc/test.tnsl +++ b/tnslc/test.tnsl @@ -1,16 +1,12 @@ -/; five [int] - return 5 +/; get_first (~uint8 str) [uint8] + return str{0} ;/ /; main (int argc, ~~uint8 argv) [int] - # Mov input from C - asm "mov r10, rdi" - asm "mov r11, rsi" + int a, b + get_first(a + b, 1) - /; if (argc < 5 && argc > 1) - return argc - ;/ - - return five() + return get_first("1234") ;/ + |