Files
c3c/test/test_suite/bitstruct/bitstruct_init_bool.c3t

22 lines
259 B
C

module foo;
bitstruct Foo : int
{
bool a : 1;
bool b : 2;
bool c : 3;
}
fn void test()
{
Foo f = { .a = true, .b = false };
}
/* #expect: foo.ll
define void @foo.test() #0 {
entry:
%f = alloca i32, align 4
store i32 2, ptr %f, align 4
ret void
}