mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
26 lines
281 B
C
26 lines
281 B
C
// #target: macos-x64
|
|
module foo;
|
|
private fn void foo1()
|
|
{}
|
|
|
|
module bar;
|
|
import private foo;
|
|
macro bar1()
|
|
{
|
|
foo::foo1();
|
|
}
|
|
|
|
module baz;
|
|
import bar;
|
|
fn void test()
|
|
{
|
|
bar::bar1();
|
|
}
|
|
|
|
/* #expect: baz.ll
|
|
|
|
define void @baz.test() #0 {
|
|
entry:
|
|
call void @foo.foo1()
|
|
ret void
|
|
}
|