IMPORTSSSSSSSSSSS

This commit is contained in:
Masashi 2025-12-16 19:29:32 +05:30
commit d7f87a37e8
9 changed files with 467 additions and 28 deletions

View file

@ -0,0 +1,6 @@
use "./module_a"
use "./module_b"
fn main() -> int do
0
end

View file

@ -0,0 +1,20 @@
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
struct Point {
int x;
int y;
};
int helper_func(void);
int main(void);
int helper_func(void) {
return 42;
}
int main(void) {
return helper_func();
}

View file

@ -0,0 +1,5 @@
use "./util"
fn main() -> int do
helper_func()
end

View file

@ -0,0 +1,3 @@
fn test_func() -> int do
42
end

View file

@ -0,0 +1,3 @@
fn test_func() -> int do
99
end

View file

@ -0,0 +1,8 @@
fn helper_func() -> int do
42
end
struct Point
x: int,
y: int,
end