Files
c3c/test/test_suite2/bitstruct/param_bitstruct.c3t
2022-07-20 12:22:03 +02:00

24 lines
333 B
C

// #target: macos-x64
module foo;
bitstruct Abc : uint
{
bool x : 0;
}
fn void test(Abc x)
{
x.x = false;
}
/* #expect: foo.ll
define void @foo_test(i32 %0) #0 {
entry:
%x = alloca i32, align 4
store i32 %0, ptr %x, align 4
%1 = load i32, ptr %x, align 4
%2 = and i32 %1, -2
store i32 %2, ptr %x, align 4
ret void
}