Fix bug with indexing function call

This commit is contained in:
Krzosa Karol
2022-05-30 11:10:27 +02:00
parent 9e24a608cb
commit 671853287a
2 changed files with 9 additions and 1 deletions

View File

@@ -24,7 +24,14 @@ add_10 :: (size: int): int
return a + b
constant :: 20; result := constant + 10
return add(a = 20)
v5 := add([0] = 1, [1] = 2)
v1 := add(a = 1)
v2 := add(a = 1, b = 2)
v3 := add([0] = 1)
v4 := add(b = 1, a = 2)
return v3
return_constant :: (): int
constant :: 10

View File

@@ -51,6 +51,7 @@
int main(){
test_os_memory();
thread_ctx_init();
test_unicode();