mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
27 lines
505 B
Plaintext
27 lines
505 B
Plaintext
// #target: macos-x64
|
|
module test;
|
|
bitstruct Foo : int
|
|
{}
|
|
typedef Foo2 = Foo;
|
|
fn void main()
|
|
{
|
|
Foo2? y, z;
|
|
y = Foo.methodsof;
|
|
}
|
|
|
|
/* #expect: test.ll
|
|
|
|
%y = alloca i32, align 4
|
|
%y.f = alloca i64, align 8
|
|
%z = alloca i32, align 4
|
|
%z.f = alloca i64, align 8
|
|
store i64 0, ptr %y.f, align 8
|
|
store i32 0, ptr %y, align 4
|
|
store i64 0, ptr %z.f, align 8
|
|
store i32 0, ptr %z, align 4
|
|
store i64 0, ptr %y.f, align 8
|
|
store i32 0, ptr %y, align 4
|
|
store i64 0, ptr %y.f, align 8
|
|
ret void
|
|
}
|