Files
c3c/test/test_suite/expressions/store_to_optional_zero.c3t

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
}