Files
c3c/test/test_suite/expressions/take_address.c3t
2026-01-18 00:33:43 +01:00

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
}