mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
25 lines
326 B
Plaintext
25 lines
326 B
Plaintext
// #target: macos-x64
|
|
module abc;
|
|
extern fn void puts(char*);
|
|
macro void test()
|
|
{
|
|
puts("b");
|
|
}
|
|
module test;
|
|
import abc;
|
|
extern fn void puts(char*);
|
|
fn void main()
|
|
{
|
|
puts("a");
|
|
abc::test();
|
|
}
|
|
|
|
/* #expect: test.ll
|
|
|
|
define void @test.main() #0 {
|
|
entry:
|
|
call void @puts(ptr @.str)
|
|
call void @puts(ptr @.str.1)
|
|
ret void
|
|
}
|