mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
21 lines
308 B
Plaintext
21 lines
308 B
Plaintext
// #target: macos-x64
|
|
|
|
module test;
|
|
import foo;
|
|
|
|
fn int main(String[] args) {
|
|
foo::one();
|
|
return 0;
|
|
}
|
|
|
|
module foo;
|
|
|
|
macro one() => two();
|
|
macro two() => three();
|
|
fn void three() @private { four(); }
|
|
fn void four() @private {}
|
|
|
|
/* #expect: foo.ll
|
|
|
|
define void @foo.three()
|
|
define internal void @foo.four() |