extern outline

This commit is contained in:
IgorCielniak
2025-12-20 22:34:27 +01:00
parent 002b36f89c
commit 3157f22c9b
6 changed files with 214 additions and 5 deletions

16
tests/c_extern.sl Normal file
View File

@@ -0,0 +1,16 @@
import ../stdlib/io.sl
# Raw extern (no ABI handling)
extern raw_extern_test
# C-style externs (auto ABI handling)
extern long labs(long n)
extern void exit(int status)
: main
# Test C-style extern with implicit ABI handling
-10 labs puti cr
# Test extern void
0 exit
;