Init new repository
This commit is contained in:
5
tests/test_build_if_import/a/a.lc
Normal file
5
tests/test_build_if_import/a/a.lc
Normal file
@@ -0,0 +1,5 @@
|
||||
#build_if(1);
|
||||
|
||||
A :: proc(): int {
|
||||
return 0;
|
||||
}
|
||||
5
tests/test_build_if_import/a/b.lc
Normal file
5
tests/test_build_if_import/a/b.lc
Normal file
@@ -0,0 +1,5 @@
|
||||
#build_if(0);
|
||||
|
||||
A :: proc(): int {
|
||||
return 1;
|
||||
}
|
||||
5
tests/test_build_if_import/b/a.lc
Normal file
5
tests/test_build_if_import/b/a.lc
Normal file
@@ -0,0 +1,5 @@
|
||||
#build_if(0);
|
||||
|
||||
B :: proc(): int {
|
||||
return 1;
|
||||
}
|
||||
5
tests/test_build_if_import/b/b.lc
Normal file
5
tests/test_build_if_import/b/b.lc
Normal file
@@ -0,0 +1,5 @@
|
||||
#build_if(1);
|
||||
|
||||
B :: proc(): int {
|
||||
return 0;
|
||||
}
|
||||
8
tests/test_build_if_import/main/main.lc
Normal file
8
tests/test_build_if_import/main/main.lc
Normal file
@@ -0,0 +1,8 @@
|
||||
import "a";
|
||||
import "b";
|
||||
|
||||
main :: proc(): int {
|
||||
a := A();
|
||||
b := B();
|
||||
return a + b;
|
||||
}
|
||||
Reference in New Issue
Block a user