mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 20:11:17 +00:00
23 lines
347 B
C
23 lines
347 B
C
// #target: macos-x64
|
|
module foo;
|
|
|
|
define Foo = distinct void*;
|
|
|
|
extern fn void test(Foo f) {}
|
|
fn void main()
|
|
{
|
|
Foo f = null;
|
|
f = null;
|
|
test(null);
|
|
}
|
|
|
|
/* #expect: foo.ll
|
|
|
|
define void @foo_main() #0 {
|
|
entry:
|
|
%f = alloca i8*, align 8
|
|
store i8* null, i8** %f, align 8
|
|
store i8* null, i8** %f, align 8
|
|
call void @test(i8* null)
|
|
ret void
|
|
}
|