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

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
}