mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
23 lines
197 B
Plaintext
23 lines
197 B
Plaintext
// #target: macos-x64
|
|
module foo;
|
|
import std;
|
|
|
|
macro @foo(#arg)
|
|
{
|
|
#arg++;
|
|
}
|
|
|
|
module bar;
|
|
import foo;
|
|
|
|
fn void main()
|
|
{
|
|
int $c = 0;
|
|
foo::@foo($c);
|
|
}
|
|
|
|
/* #expect: bar.ll
|
|
|
|
entry:
|
|
ret void
|
|
} |