mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
31 lines
397 B
Plaintext
31 lines
397 B
Plaintext
// #target: macos-x64
|
|
module testing;
|
|
import blurb;
|
|
import foo;
|
|
|
|
alias hello_int = foo::hello{int};
|
|
|
|
fn void main()
|
|
{
|
|
blurb::test(&hello_int);
|
|
}
|
|
|
|
module foo <Type>;
|
|
|
|
fn void hello() {}
|
|
|
|
module blurb;
|
|
|
|
alias Foo = fn void();
|
|
alias Bar = fn void();
|
|
|
|
fn void test(Foo x) {}
|
|
|
|
/* #expect: testing.ll
|
|
|
|
define void @testing.main() #0 {
|
|
entry:
|
|
call void @blurb.test(ptr @"foo.hello$int$")
|
|
ret void
|
|
}
|