Init new repository
This commit is contained in:
4
tests/test_namespaced_import/a/a.lc
Normal file
4
tests/test_namespaced_import/a/a.lc
Normal file
@@ -0,0 +1,4 @@
|
||||
/*@api*/
|
||||
A :: proc(): int {
|
||||
return 0;
|
||||
}
|
||||
12
tests/test_namespaced_import/b/b.lc
Normal file
12
tests/test_namespaced_import/b/b.lc
Normal file
@@ -0,0 +1,12 @@
|
||||
import "a";
|
||||
|
||||
/*@api*/
|
||||
B :: proc(): int {
|
||||
return A();
|
||||
}
|
||||
|
||||
B_NO_API :: proc() {
|
||||
}
|
||||
|
||||
/*@api*/
|
||||
BCONST :: 32;
|
||||
10
tests/test_namespaced_import/main/c.lc
Normal file
10
tests/test_namespaced_import/main/c.lc
Normal file
@@ -0,0 +1,10 @@
|
||||
import b "b";
|
||||
|
||||
main :: proc(): int {
|
||||
result := b.B();
|
||||
// b.B_NO_API();
|
||||
b.A();
|
||||
b;
|
||||
co := b.BCONST; @unused
|
||||
return result;
|
||||
}
|
||||
3
tests/test_namespaced_import/test.txt
Normal file
3
tests/test_namespaced_import/test.txt
Normal file
@@ -0,0 +1,3 @@
|
||||
// #failed: package
|
||||
// #error: undeclared identifier 'A'
|
||||
// #error: declaration is import
|
||||
Reference in New Issue
Block a user