mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 20:11:17 +00:00
22 lines
259 B
Plaintext
22 lines
259 B
Plaintext
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
|
|
} |